Displaying 1 result from an estimated 1 matches for "worker_spec".
2014 May 29
0
How to make the tests pass in an elegant way? Ruby on Rails
...y on rails. Thanks.
Edit: Fails:
Failures:
1) Worker merging two worker should return the winner
Failure/Error: @result = Worker.merge(@winner, @loser)
NoMethodError:
undefined method `merge' for #<Class:0x007fb612ee2ff8>
# ./spec/models/worker_spec.rb:15:in `block (3 levels) in <top
(required)>'
2) Person merging two people should not edit the winner's name
Failure/Error: @result = Worker.merge(@winner, @loser)
NoMethodError:
undefined method `merge' for #<Class:0x007fb612ee2ff8>...