How to use minitest fixtures in Cucumber steps?

Viewed 1032

How can I use the fixtures that come with the stock minitest in Cucumber steps?

Say, I have `test/fixtures/users.yml:

harry:
  email: harry@hogwards.edu.uk
  password: caputdraconis

In minitest, this would be used in e.g. @user = users(:harry). But it cannot be used in Cucumber: undefined method 'users' for #<Cucumber::Rails::World:0xaf2cd1c> (NoMethodError).

How can I make the fixtures and their helpers available in Cucumber? Is this a good idea in the first place?

1 Answers
Related