[rspec-devel] names for setup and teardown methods

Michael Klishin michael.s.klishin at gmail.com
Wed May 2 00:27:19 EDT 2007


Matt,

Second spec is not supposed to pass. You have to put the code creating
 model in setup (before all in rspec 0.9 terms) cause DB is cleared
and refilled before each spec run. So this is expected behavior.

On 02/05/07, Matt Aimonetti <mattaimonetti at gmail.com> wrote:

> The second example fails. I'm a bit surprised that the user created by the
> first example doesn't exist anymore when the 2nd example tries creating a
> new user.

-- 
This was freedom. Losing all hope was freedom.

Chasing the beauty in programming:
www.ruby-lang.org | www.rubyonrails.org


More information about the rspec-devel mailing list