Re: [rspec-users] "RESTful" controller specs in rails

2010-01-04 Thread Tom Stuart
On 4 Jan 2010, at 22:46, Pat Maddox wrote: > I use resource_controller, and then don't need to write controller specs > because it's all boiler-plate. If I add any custom behavior that needs more > focused testing than cucumber provides, I can just write a couple specs to > cover it. Ditto: I

Re: [rspec-users] "RESTful" controller specs in rails

2010-01-04 Thread Pat Maddox
I use resource_controller, and then don't need to write controller specs because it's all boiler-plate. If I add any custom behavior that needs more focused testing than cucumber provides, I can just write a couple specs to cover it. Pat On Jan 4, 2010, at 11:16 AM, Nicolás Sanguinetti wrot

[rspec-users] "RESTful" controller specs in rails

2010-01-04 Thread Nicolás Sanguinetti
So, what's the awesome sauce everyone is using for this? In the past I've used shared behaviors, and rspec_on_rails_on_crack to solve all the repetition in the controller specs, but I've been away from rspec for a while, and the controller specs in the rails project I'm working on are a mess. So… w