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

Ashley Moran
2007-07-31T14:22:07Z

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