David Kahn wrote:
> On Thu, Oct 7, 2010 at 9:37 PM, Marnen Laibow-Koser 
> <[email protected]>wrote:
> 
> Nothing should ever be seeded in the DB in testing.  You want a clean
> slate.  Set up only the records you need for each scenario.
> 
> Right - maybe I am missing something, how do you add records before a
> scenario? Is there a before(:each) like in rspec?

Check out scenario backgrounds.

Best,
-- 
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

Sent from my iPhone
-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to