[pickle] Pickle paths

10 views
Skip to first unread message

tobmatth

unread,
May 21, 2010, 7:43:16 AM5/21/10
to pickle
Hey there,


i'm using pickle 0.2.11 and i 'm trying to get this scenario to work:

Scenario: Show filter box
Given a role exists with title: "manager"
And a staff exists with login: "john", password:
"myverysecretpassword", role: the role
And a person exists with creator: the staff
And I am logged in as "john" with password
"myverysecretpassword"
When I go to the staff's that person's protocols page
Then show me the page

This is how my routes look like:

map.namespace :staff do |
staff|

staff.resources :people, do
|person|
person.resources :protocols
end
end

I would expect path_to_pickle to return a path like "/staff/people/137/
protocols", but it returns this path:

"/staff/people/137/protocols.%23%3Cperson:0x2eef76c%3E"

Any hints on what i'm doing wrong or how to get this to work?


Thanks
Tobi

--
You received this message because you are subscribed to the Google Groups "pickle" group.
To post to this group, send email to pickle-...@googlegroups.com.
To unsubscribe from this group, send email to pickle-cucumb...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pickle-cucumber?hl=en.

Ian White

unread,
May 21, 2010, 8:53:35 AM5/21/10
to pickle-...@googlegroups.com
Hi Tobi,

I'll look into this, thanks.

But I should mention that the 'path_to_pickle' defaults that are generated can;t cover all cases of routes, and the idea is to just add your own ones, in the normal cucumber way, especially if the wording looks strange.

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