Thanks Marnen and Radhames for the help... got things working. Radhames, took your lead and tried the selenium driver instead of culerity.
I think there is some issue with culerity on Rails 3/1.9.2 (a broken pipe error occurs regularly) but w selenium things went smooth. You probably already know this but for completeness of this post, I actually found while looking at Scenario Backgrounds the cucumber hooks for running something before each scenario in the whole suite (below)... in this case the user roles always have to be there so it makes more sense to put this there than inside each feature. env.rb Before do Factory.create(:sysadmin_role) Factory.create(:practice_admin_role) Factory.create(:practice_user_role) end On Fri, Oct 8, 2010 at 7:26 AM, Marnen Laibow-Koser <[email protected]>wrote: > 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]<rubyonrails-talk%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- 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.

