lib/test_support/cucumber/support/values.rb in sniff-0.1.8 vs lib/test_support/cucumber/support/values.rb in sniff-0.1.9
- old
+ new
@@ -23,13 +23,13 @@
elsif a.is_a? Date or a.is_a? Time
b = Date.parse b
a.should == b
elsif b =~ /\d+\.\d+/
b = b.to_f
- a.should be_close(b, 0.00001)
+ a.to_f.should be_close(b, 0.00001)
elsif b =~ /^\d+$/
b = b.to_i
- a.should == b
+ a.to_i.should == b
else
a.should == b
end
end