Setting up factory girl with cucumber and rails 3?

You should only need these steps. Gemfile: group :development, :test do gem "rspec-rails" end group :test do gem "cucumber-rails" gem "factory_girl_rails" end features/support/factory_girl. Rb: require 'factory_girl/step_definitions' spec/factories.

Rb: # your Factory definitions.

Dan, I've followed your steps but I still cannot use the factory girl step definitions. When I try : Given I am not logged in And the following user exists: | login | email | password | confirmation | | user50 | user50@mydomain. Com | secret50 | secret 50 | ... I get the following error: Undefined step: "the following user exists:" (Cucumber::Undefined exception) You can implement step definitions for undefined steps with these snippets: Given /^the following user exists:$/ do |table| # table is a Cucumber::Ast::Table pending # express the regexp above with the code you wish you had end Any ideas on what's missing?

You need to require 'factory_girl_rails' first in features/support/factory_girl. Rb as the step definitions are generated from your factories. – RobinGower Sep 23 at 1:59.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions