Marius Butuc

Testing User Authentication

From the Fixture level

Our hypothetical Rails app: the Foo Club

Let's imagine that Foo Club wants you to build an application to display events. These events are of two types—public and private:

  • Public events are visible to anyone visiting our application.
    Say someone prospecting, to determine if the Club is a right fit.
  • Private events are only visible . . .

Read More

January 18, 2016

Reading: Good Omens

The Nice and Accurate Prophecies of Agnes Nutter, Witch

All work and no play makes Marius a dull boy

This is one comes somewhat complementary to the other articles that are mostly focused on either technical subjects or around team/company culture or craftsmanship.

So much more complementary as life tends so much more than work, than passions, than what you live, than what lives you…

And there was . . .

Read More

Posted in: reading

January 17, 2016

Code coverage analysis tools

SimpleCov: how to add it to your tool belt and (the 5) why(s)

Why am I reading this?

Popular software development culture advises us that 100% test coverage of our code is no reason for pride. It's not even a goal to be pursued on high priority. Either taught by our experience already, or we've overheard at least an elder (developer) say say it before: having test that provide complete code . . .

Read More

January 04, 2016

Be careful the environment you choose

for it will shape you

Michael Hartl mentions in his Rails Tutorial that Rails comes equipped with three environments: test, development, and production.
Then an aside shows how to run a console, a server and a rake task in an environment different from the implicit development because, as he confesses

I find it confusing that the console, server, and migrate . . .

Read More

Posted in: rails

November 30, 2015

I can sleep when the wind blows

learning about ease at work from Kent Beck

Stumbled tonight on Kent Beck's keynote from RailsConf 2015 on the streetcar, on my way back from work, after a few weeks that have been less comfortable. A few weeks when the feeling that there is a massive "oportunity for improvement" was just starring me in the face, but I was too focused on that one thing I was doing to be . . .

Read More

Posted in: railsconfkeynote

November 07, 2015

Testing asynchronous emails

the Rails 4.2+ way

Silvrback blog image

Disclaimer: These "lab notes" were originally written for and published on Engine Yard's blog back in April.

While putting them together, Noah Slater's patient feedback changed the tone and the flow of this article significantly for the better.

Having said that, let's dig in!

Say you're building an app . . .

Read More

Posted in: testingrails

October 05, 2015

Clojure workshop for beginners

Bring your beginner mind

Heard of Clojure? Wanted to, or tried it out already? Eager to better understand its idiomatic ways?

The Clojure Toronto group is kickstarting the Clojure workshop for beginners with the first session this Saturday, March 7, from 1pm.

The plan is to meet up every Saturday afternoon at the Shopify office and dive into Clojure with open, . . .

Read More

March 06, 2015