JeanM
unread,Jul 28, 2010, 9:26:54 AM7/28/10Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to pickle
Hi, I'm having some troubles getting Cucumber + Pickle + factory_girl
to work using Ruby 1.9.2dev + Rails 3.0.0.rc, I hope anyone can help
me out.
I've added the following steps:
Scenario: Show webpage
Given webpage exists with title: "Index"
When I go to the show webpage for that page
Then I should see "Index" within "h1"
When running Cucumber, I get:
1 scenario (1 undefined)
3 steps (2 skipped, 1 undefined)
0m0.496s
You can implement step definitions for undefined steps with these
snippets:
Given /^webpage exists with title: "([^"]*)"$/ do |arg1|
pending # express the regexp above with the code you wish you had
end
So it's not loading the pickle added steps, but when I copy over the
required step inside pickle_steps.rb to my_steps.rb it still won't
recognize it, how can this be?:
# create n models
Given(/^(\d+) #{capture_plural_factory} exist(?: with
#{capture_fields})?$/) do |count, plural_factory, fields|
count.to_i.times { create_model(plural_factory.singularize,
fields) }
end