X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=spec%2Fsimpletext.spec.rb;h=4ff96b8a126fa19aa1fb3b14010c7b096eedb361;hb=8d594217e92517a626bb5b06f23a3034df1c4453;hp=d5911ad463908453a024b28cef9c58c3b75ff7e8;hpb=98caa66dc7bb7a304b7b9d4d95d8d0849cefec01;p=swftools.git diff --git a/spec/simpletext.spec.rb b/spec/simpletext.spec.rb index d5911ad..4ff96b8 100644 --- a/spec/simpletext.spec.rb +++ b/spec/simpletext.spec.rb @@ -1,12 +1,14 @@ require File.dirname(__FILE__) + '/spec_helper' -describe "pdf conversion" do - convert_file "simpletext.pdf" do - pixel_at(109,133).should_be_of_color 0x000000 - pixel_at(154,139).should_be_brighter_than pixel_at(151,139) - pixel_at(53,136).should_be_darker_than pixel_at(58,166) - pixel_at(97,164).should_be_the_same_as pixel_at(208,256) - area_at(215,80,333,156).should_be_plain_colored - area_at(46,126,180,158).should_not_be_plain_colored - end +describe "pdf conversion" do + + convert_file "simpletext.pdf" do + pixel_at(109,133).should_be_of_color 0x000000 + pixel_at(154,139).should_be_brighter_than pixel_at(151,139) + pixel_at(53,136).should_be_darker_than pixel_at(58,166) + pixel_at(97,164).should_be_the_same_as pixel_at(208,256) + area_at(215,80,333,156).should_be_plain_colored + area_at(46,126,180,158).should_not_be_plain_colored + area_at(38,118,170,152).should_contain_text 'Hello World' + end end