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
Post a Comment