Testing model validations in rspec the short and sweet way There seems to be a divide in the Rails/TDD community over whether you should bother testing your model validations. On the one hand, it's silly...
Named redirect routes in Rails 3 I didn't see this mentioned anywhere in the Rails Guide or in my admittedly cursory Google searches, but apparently it's possible to create named redirect...
It Should Include Only One Of – An RSpec Matcher I know RSpec tests should typically be implementation/data agnostic, but I ran into a situation in a unit test where I needed to make sure...
Join (implode) an Array of String Values with Formatting In programming, I often need to join values together from an array. Typically this will be to do something on the backend, like join a...
Writing the First Cucumber Feature I'm currently working on my first BDD project, but after reading through the Cucumber wiki for what felt like the 100th time I was still...