lib/test_support/cucumber/support/values.rb in sniff-0.6.7 vs lib/test_support/cucumber/support/values.rb in sniff-0.6.8
- old
+ new
@@ -39,10 +39,10 @@
a.should == b
elsif b =~ /\d+.*,.*\d/
a.should == b
elsif b =~ /\d+\.\d+/
b = b.to_f
- a.to_f.should be_close(b, 0.00001)
+ a.to_f.should be_within(0.00001).of(b)
elsif b =~ /^0/
a.to_s.should == b
elsif b =~ /^\d+$/
b = b.to_i
a.to_i.should == b