Sha256: d4c3c143e5d7b130c188a82485e940bdb74b9353404322525e5726c5fba3d1d8

Contents?: true

Size: 456 Bytes

Versions: 61

Compression:

Stored size: 456 Bytes

Contents

Then %r{I should see an image with a path of "([^"]*)"} do |path|
  page.should have_css("img[src^='#{path}']")
end

Then %r{^the file at "([^"]*)" is the same as "([^"]*)"$} do |web_file, path|
  expected = IO.read(path)
  actual = if web_file.match %r{^https?://}
    Net::HTTP.get(URI.parse(web_file))
  else
    visit(web_file)
    page.body
  end
  actual.force_encoding("UTF-8") if actual.respond_to?(:force_encoding)
  actual.should == expected
end

Version data entries

61 entries across 59 versions & 5 rubygems

Version Path
paperclip-3.5.2 features/step_definitions/html_steps.rb
paperclip_database-2.0.0 features/step_definitions/html_steps.rb
paperclip-3.5.1 features/step_definitions/html_steps.rb
paperclip-3.5.0 features/step_definitions/html_steps.rb
paperclip-3.4.2 features/step_definitions/html_steps.rb
paperclip-3.4.1 features/step_definitions/html_steps.rb
paperclip-2.7.5 features/step_definitions/html_steps.rb
paperclip-3.4.0 features/step_definitions/html_steps.rb
paperclip-2.7.4 features/step_definitions/html_steps.rb
paperclip-3.3.1 features/step_definitions/html_steps.rb
paperclip-2.7.2 features/step_definitions/html_steps.rb
paperclip-3.2.1 features/step_definitions/html_steps.rb
paperclip-2.8.0 features/step_definitions/html_steps.rb
paperclip-3.3.0 features/step_definitions/html_steps.rb
paperclip-2.7.1 features/step_definitions/html_steps.rb
paperclip_database-1.0.5 features/step_definitions/html_steps.rb
paperclip-3.2.0 features/step_definitions/html_steps.rb
paperclip_database-1.0.4 features/step_definitions/html_steps.rb
paperclip_database-1.0.3 features/step_definitions/html_steps.rb
paperclip-3.1.4 features/step_definitions/html_steps.rb