Shoulda used RSpec
I’ve been updating the muck gems to work with Rails 3. The change is significant and painful but in a good way. For the most part the change consists of deleting all the code you…
I’ve been updating the muck gems to work with Rails 3. The change is significant and painful but in a good way. For the most part the change consists of deleting all the code you…
I’m not sure if this applies to all the versions of Rails, but right now I’m using the latest 2.3.3. I’m using shoulda to do testing and my code looks like this:
I tried the latest shoulda on luvfoo a while back and it died on the internationalization stuff so we gave up. Turns out that with the new internationalization in Rails 2.2.2…
I’ve had my problems with shoulda, but one very powerful component of the testing framework is the ability to create macros. Here’s one that checks to make sure a user has to be…
One of the models in a project I am working on right now ends in ‘status’. Rails handles that just find but in my tests I started noticing an odd error:
I have been banging my head against a problem in my testing. Using the UI everything worked as expected, but my tests were failing when I tried to see if emails were being sent in…
Shoulda comes with a great method for testing email called ‘assert\_sent\_email’. (If you try it and get a method missing error update Shoulda. Not that anyone wouldn’t know to…