Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. COThanks for the quick reply. env.rb now looks like this:`require 'pp' require 'cucumber/rails' require 'factory_girl_rails' and factories.rb looks like this `FactoryGirl.define do factory :user do name 'Adam Advertiser' email 'a@b.com' end end pp FactoryGirl.create(:user) require 'factory_girl/step_definitions'` which is hopefully what you were suggesting. The alternative you mentioned is a little beyond my current level. Anyway, the steps are now recognised but not quite right because I get a "Factory not registered: user (ArgumentError)". Any suggestions would be much appreciated. `
      singulars
    2. COSorry - had to do it again -- Thanks for the quick reply. **env.rb** now looks like this: `require 'pp' require 'cucumber/rails' require 'factory_girl_rails'` and **factories.rb** looks like this: `FactoryGirl.define do factory :user do name 'Adam Advertiser' email 'a@b.com' end end pp FactoryGirl.create(:user) require 'factory_girl/step_definitions'` which is hopefully what you were suggesting. Factory_girl steps are now recognised but not quite right because I get a "**Factory not registered: user (ArgumentError)**". Any suggestions would be much appreciated. `
      singulars
    3. COI have been unable to reproduce this error, so I may not be of much more help. Here is a gist I created with the barebones version of my test app: < https://gist.github.com/1439759 > This should be all you need to make it work. If that exact file structure is not working for you, we must have a difference in environment? Please let me know what version of ruby and what versions of the various gems you are using. (The reason for the save! method is to avoid having to do something with persistence, to keep it a simple test case.)
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload