[rspec-users] Disabling database access in controller specs
stefan.kanev at gmail.com
Wed Mar 3 15:43:53 EST 2010
It took a while, but now I an totally convinced that controller specs should
not access the database and stub as much as possible. I'm committed to that
style of writing, yet from time to time I incidentally allow it to happen.
Is there a way to err on the safe side and have RSpec throw an error every
time a controller spec attempts to access the database?
And does it sound like a good idea?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rspec-users