[rspec-users] Isolating rails model specs from their implementation

Ashley Moran work at ashleymoran.me.uk
Tue Jul 31 10:22:07 EDT 2007


On 29 Jul 2007, at 22:45, David Chelimsky wrote:

> Changing state between expectations in one example is a TDD no-no. The
> reason is that if "project.should be_active" fails, you might do
> something to fix it and then find that "project.should_not be_active"
> fails.

Glad I spotted this - I think I'm guilty of this one.  I've dumped a  
copy on the RSpec style page on our wiki <http://www.codeweavers.net/ 
wiki/bin/view/RSpecCollab/WebHome> until I get chance to tidy it up

Ashley




More information about the rspec-users mailing list