#24 ✓resolved
Martin Rehfeld

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

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

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.

Comments and changes to this ticket

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Assign tickets to <b>Ian White</b>, so I get notified

People watching this ticket

Pages