mirror of
https://github.com/thoughtbot/capybara-webkit
synced 2023-03-27 23:22:28 -04:00
Fuzzier width checking for the PNG rendering, to handle inconsistencies between CI and local.
This commit is contained in:
parent
39953919e6
commit
09b69409a5
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue