X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=spec%2Fspec_helper.rb;fp=spec%2Fspec_helper.rb;h=414ced812ceae26c8b75af2385a331c5ad1f5fd7;hb=95903addc2703a928de38e99b4274a5d3da44aa2;hp=78a25b306893f48dce1ce9f64f6ca770462587c4;hpb=649ac0b90eedb21df0232ca5d0705e006dec511c;p=swftools.git diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 78a25b3..414ced8 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -75,7 +75,7 @@ class Pixel gray2 = pixel.rgb.inject(0) {|sum,e| sum+e} gray1 > gray2 or raise PixelError.new(self,"is not brighter than",pixel) end - def should_be_less_bright_than(pixel) + def should_be_darker_than(pixel) gray1 = @rgb.inject(0) {|sum,e| sum+e} gray2 = pixel.rgb.inject(0) {|sum,e| sum+e} gray1 < gray2 or raise PixelError.new(self,"is not less bright than",pixel)