Sha256: 2446535339ab5013036c2337566bb57d278c5f454e36922f31c9c4080dc300bc
Contents?: true
Size: 395 Bytes
Versions: 11
Compression:
Stored size: 395 Bytes
Contents
When /^I look at the generated (.+) image$/ do |image_name| page.body =~ /src="(.+?#{image_name}.+?)"/ url = $1 visit(url) end Then /^I should see a (.+) image of size (.+)$/ do |format, size| tempfile = Tempfile.new('wicked') tempfile.write page.body tempfile.close output = `identify #{tempfile.path}`.split(' ') output[1].should == 'JPEG' output[2].should == '200x100' end
Version data entries
11 entries across 11 versions & 1 rubygems