Unit Testing in Ruby - via @codeship | via @codeship

Uncategorized

Unit Testing in Ruby - via @codeship | via @codeship

URL: http://blog.codeship.com/unit-testing-in-ruby?_hsenc=p2ANqtz-_i0yJ4Zyz0kjN80DX9LsHyz8gf1YfCNeLznaIFiD4c9APwqpnxk1HZX3G4nM-0t3oqaIP7e6iI0WuKB2p3Z1Fl6fxvKQ&_hsmi=25379944
Type: article
Domain: blog.codeship.com

Excerpt: cancelled_at).to be_a(Time) end end end SINGLE RESPONSIBILITY If your method doesn't fall into one of the three categories above - meaning that its purpose isn't defined by a result, a method call, or a side effect - perhaps it's doing too much.