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 used to hack into the Rails framework and adding subclass of '::Rails::Engine'. I'll try to put together a detailed post explaining Rails 3 engines later.
The nice thing about having a test suite in place is that you can rely on those tests to ensure the upgrade is smooth. I've always written my tests in Shoulda. I like the syntax and I love the macros. However, I'm switching everything over to RSpec. Thoughtbot has declared they won't abandon the Shoulda community, but since they've made the switch to RSpec for new projects it's pretty clear that Shoulda as a stand alone project has a limited life.
Luckily I've used RSpec in a lot of other projects and it's an easy DSL to like. The conversion from shoulda to RSpec isn't a terribly difficult one. You basically ne...Continue Reading →