Friday, October 8, 2010

[Rails] Re: Re: Cucumber @javascript scenarios loose seeded data

David Kahn wrote:
> On Thu, Oct 7, 2010 at 9:37 PM, Marnen Laibow-Koser
> <lists@ruby-forum.com>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
marnen@marnen.org

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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate