1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00

Color values are serialized in lowercase

According to the spec [1], color values are serialized in lowercase.
capybara-webkit returns lowercase values when compiled against Qt 5,
while Firefox and Qt 4 return the initial, uppercase value.

[1] http://goo.gl/2GK9o
This commit is contained in:
Matthew Horan 2013-01-13 11:14:00 -05:00
parent 6ee2454240
commit 3962167fff

View file

@ -63,7 +63,7 @@ Capybara::SpecHelper.spec '#click_button' do
end
it "should serialise and submit color fields" do
@results['html5_color'].should == '#FFFFFF'
@results['html5_color'].upcase.should == '#FFFFFF'
end
end