Pickle paths not getting parsed

3 views
Skip to first unread message

millisami

unread,
Nov 24, 2009, 2:33:48 PM11/24/09
to pickle
The following is my scenerio:

Given I am logged in
And I am on the new project page
When I fill in "name" with "Rails 3"
And I press "Create"

Then a project should exist with name: "Rails 3"
And I should be at the project's page

and the following is from the features/support/paths.rb
# added by script/generate pickle path

when /^#{capture_model}(?:'s)? page$/ # eg. the forum's page
path_to_pickle $1

When I run the cucumber, the last feature "And I should be at the
project's page" is getting bypassed and showing me that its pending
step!!

You can implement step definitions for undefined steps with these
snippets:

Then /^I should be at the tagline's page$/ do
pending # express the regexp above with the code you wish you had
end

Is there anything wrong with my steps/paths ???

Ian White

unread,
Nov 24, 2009, 5:13:26 PM11/24/09
to pickle
Hi millisami,

Strange, it looks as though everything is correct.

There is one oddity, your pending step that you quoted doesn;t match
the step. I wonder if you are editing the correct file?

> Then /^I should be at the tagline's page$/ do
> pending # express the regexp above with the code you wish you had
> end

The above step metions taglines, but you are talking about projects in
the above scenario.

Let me know if this sheds any light or not. If not, we'll figure out
what to do next. Also try upgrading pickle to the latest (0.2 just
released)

Cheers,
Ian
Reply all
Reply to author
Forward
0 new messages