Use a more liberal regexp to try to pass on all platforms

This commit is contained in:
Bryan Helmkamp 2008-12-25 12:11:48 -05:00
parent 267a66cbc1
commit 5015122fa9

View File

@ -11,7 +11,7 @@ module Webrat
element = Webrat::XML.css_search(Webrat::XML.document(html), "input").first element = Webrat::XML.css_search(Webrat::XML.document(html), "input").first
checkbox = CheckboxField.new(nil, element) checkbox = CheckboxField.new(nil, element)
checkbox.inspect.should =~ /#<Webrat::CheckboxField @element=<input type=['"]checkbox['"] checked=['"]checked['"]\/>>/ checkbox.inspect.should =~ /#<Webrat::CheckboxField @element=<input type=['"]checkbox['"] checked(=['"]checked['"])?\/?>>/
end end
end end