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
-
Ian White November 23rd, 2014 @ 11:12 AM
- State changed from new to resolved
(from [876059ea05f85cb9363f41760b90568811c702a7]) Reduce number of queries when creating multiple models
Also refactor the create/build model methods. Fixes #24.
https://github.com/ianwhite/pickle/commit/876059ea05f85cb9363f41760...
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.
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