ruby on rails - Cucumber and Seed data -


can load seed data when start cucumber? please support me way.

you use factory girl in cucumber tests setup 'stuff'

background:   car exists  scenario: drive car   given in car   , have keys in ignition   when turn keys   ... 

then you'll create car in step definitions, like

@car = factory.create(:car) 

Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -