From 09b69409a59f492124790493a43f1d048663b49f Mon Sep 17 00:00:00 2001 From: Mike Burns Date: Tue, 5 Jul 2011 11:33:30 -0400 Subject: [PATCH] Fuzzier width checking for the PNG rendering, to handle inconsistencies between CI and local. --- spec/driver_rendering_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/driver_rendering_spec.rb b/spec/driver_rendering_spec.rb index 845c1c1f..586dcea1 100644 --- a/spec/driver_rendering_spec.rb +++ b/spec/driver_rendering_spec.rb @@ -44,7 +44,8 @@ def render(options) 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