Fuzzier width checking for the PNG rendering, to handle inconsistencies between CI and local.

This commit is contained in:
Mike Burns 2011-07-05 11:33:30 -04:00
parent 39953919e6
commit 09b69409a5
1 changed files with 2 additions and 1 deletions

View File

@ -44,7 +44,8 @@ describe Capybara::Driver::Webkit, "rendering an image" do
end
it "width default to 1000px (with 15px less for the scrollbar)" do
@image[:width].should == 1000-15
@image[:width].should be < 1001
@image[:width].should be > 1000-17
end
it "height should be at least 10px" do