Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

pickle_steps.rb: model.attribute.should eql(value) does not work with integers

#24

I was caught by surprise today when this Pickle based step in Cucumber failed on me:

Then the requirement's score should be 1

=> ~ "expected 1.0 but was 1"

It was easy enough to fix with a custom step definition in my own project, but I thought it might be of general interest. Right after I cloned pickle to submit a patch, I stumbled across this commit by Tom ten Thij that has exactly the code I was about to propose. Holy Git!

So consider this ticket a +1 for applying above commit.

Reported by Martin Rehfeld · June 24th, 2010 @ 07:37 PM

State: new
Milestone: none
Assigned to: Ian White Ian White

Activity

  1. Martin Rehfeld
    Martin Rehfeld
    • Tag changed from steps bug integer, generators to bug, generators, integer, steps

    June 24th, 2010 @ 07:41 PM

  2. Ian White

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.