lib/test_support/cucumber/support/values.rb in sniff-0.11.6 vs lib/test_support/cucumber/support/values.rb in sniff-0.11.7
- old
+ new
@@ -32,10 +32,10 @@
end
end
def compare_values(a, b)
if b.blank?
- a.blank?
+ a.should be_blank
elsif a.is_a?(Float)
a.should be_within(0.00001).of(b)
elsif a.is_a? Date
a.strftime('%Y-%m-%d').should == b.strftime('%Y-%m-%d')
elsif a.is_a? Time