lib/test_support/cucumber/support/values.rb in sniff-0.1.2 vs lib/test_support/cucumber/support/values.rb in sniff-0.1.3

- old
+ new

@@ -16,10 +16,10 @@ value end end def compare_values(a, b) - if b.nil? + if b.nil? or b.empty? a.should be_nil elsif a.is_a? Date or a.is_a? Time b = Date.parse b a.should == b elsif b =~ /\d+\.\d+/