ensure text comparisons

This commit is contained in:
John Bintz 2012-11-24 10:19:13 -05:00
parent 124ea5d3cf
commit be3127b265
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ def find_attribute(name, value = nil)
yield attribute, @inputs[name] if block_given?
attribute.text.should == value if value
attribute.text.should == value.to_s if value
attribute
end
@ -30,7 +30,7 @@ end
def find_attributes(*attrs)
attrs.each do |attr|
find_attribute(attr).text.should == @inputs[attr]
find_attribute(attr).text.should == @inputs[attr].to_s
end
end