views:

25

answers:

1

can we load seed data when start cucumber? Please support me a way.

+1  A: 

You could use Factory Girl to in your cucumber tests to setup your 'stuff'

Background:
  A car exists

Scenario: I drive a car
  Given I am in a car
  And I have keys in the ignition
  When I turn the keys
  ...

Then you'll create the car in your step definitions, with something like

@car = Factory.create(:car)
Jesse Wolgamott
great. thanks for your support
Nam Khanh