lib/test_support/cucumber/support/values.rb in sniff-0.1.6 vs lib/test_support/cucumber/support/values.rb in sniff-0.1.7
- old
+ new
@@ -17,10 +17,10 @@
end
end
def compare_values(a, b)
if b.nil? or b.empty?
- a.should be_nil
+ a.should be_empty
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