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

Version Path
dragonfly-0.6.2 fixtures/files/features/step_definitions/album_steps.rb
dragonfly-0.6.1 fixtures/files/features/step_definitions/album_steps.rb
dragonfly-0.6.0 fixtures/files/features/step_definitions/album_steps.rb
dragonfly-0.5.7 fixtures/files/features/step_definitions/album_steps.rb
dragonfly-0.5.6 fixtures/files/features/step_definitions/album_steps.rb
dragonfly-0.5.5 fixtures/files/features/step_definitions/album_steps.rb
dragonfly-0.5.4 fixtures/files/features/step_definitions/album_steps.rb
dragonfly-0.5.3 fixtures/files/features/step_definitions/album_steps.rb
dragonfly-0.5.2 fixtures/files/features/step_definitions/album_steps.rb
dragonfly-0.5.1 fixtures/files/features/step_definitions/album_steps.rb
dragonfly-0.5.0 fixtures/files/features/step_definitions/album_steps.rb