Then I should be on...

4 views
Skip to first unread message

Levi Rosol

unread,
Sep 23, 2010, 1:16:51 AM9/23/10
to pickle
First off, Pickle has been great. It's pretty much been a set it and
forget it type of tool. Unfortunately, because of this, I'm probably
not 100% on top of what's going on and where to fix things.

Anyways, in my project i have two branches, master and not_master.
while working off in not_master, i upgraded a few gems (cucumber,
pickle, etc) and now my test have blown up. The issue seems to be with
finding particular paths. For example, this scenario:

Scenario: Create a new Position
When I go to the positions page
And I follow "New Position"
Then I should be on the new position page
When I select "Baseball" from "sport"
And I fill in "Name" with "Taco"
And I press "Create Position"
Then I should be on the position page
And I should see "Taco"

is now failing on the "Then I should be on the position page" line.
I've tried changing position to position's. I've tried adding "show".
Nothing seems to work. But "the positions" and "new position" pages
both work. I am seeing the same thing for all other models.

My paths.rb contains nothing specific to position, and does contain
the path_to_pickle when's.

Now here's where it gets interesting. If i switch back over to my
master (paths.rb is identical in both), everything runs perfectly. As
soon as i merge, everything asplodes with F bombs in my autotest (and
manually running). Doing a diff between the two doesn't bring up any
obvious pickle / cucumber related changes.

I'm running cucumber 0.9.0, pickle 0.4.2, gherkin 2.2.3 and cucumber-
rails 0.3.2

Anyone have some thoughts here? I'm pulling my hair out on this one.
I'm sure I've missed something really simple.

Thank you!

Michael MacDonald

unread,
Sep 23, 2010, 2:11:32 AM9/23/10
to pickle-...@googlegroups.com
Hi Levi,

I’m surprised that it used to work. I would’ve expected you to have needed an extra line in your feature:

   And I press "Create Position”
   Then a position should exist
   Then I should be on the position page

This would’ve confirmed that a position was created and simultaneously made that position available to pickle allowing you to reference it in later steps using pickle.

What versions of cucumber and pickle were you using on your master branch ie what did you upgrade from?

Cheers,

Michael.

--
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.


Levi Rosol

unread,
Sep 23, 2010, 9:15:50 AM9/23/10
to pickle-...@googlegroups.com
I'm not at a PC with my codebase right now, but i believe i upgraded from 0.2.11.

--
Levi Rosol
www.ScoreYard.com
Twitter: @LeviRosol

Levi Rosol

unread,
Sep 23, 2010, 10:09:38 PM9/23/10
to pickle
I made the change you suggested and it seems to have fixed my issue. I
now have a ton of tests to update, but it's a pretty simple fix.

Thanks for the help!

Levi

On Sep 23, 8:15 am, Levi Rosol <levi.ro...@gmail.com> wrote:
> I'm not at a PC with my codebase right now, but i believe i upgraded from
> 0.2.11.
>
> --
> Levi Rosolwww.ScoreYard.com
> Twitter: @LeviRosol
>
> On Thu, Sep 23, 2010 at 1:11 AM, Michael MacDonald <mich...@starclass.com.au
> > pickle-cucumb...@googlegroups.com<pickle-cucumber%2Bunsubscribe@ googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages