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
solidus_backend-1.0.0.pre3 vendor/bundle/gems/paperclip-4.2.4/features/step_definitions/html_steps.rb
paperclip-v2_7-patched-ruby-1_8_6-2.7.5 features/step_definitions/html_steps.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/paperclip-4.2.4/features/step_definitions/html_steps.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/paperclip-4.2.3/features/step_definitions/html_steps.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/paperclip-4.2.4/features/step_definitions/html_steps.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/paperclip-4.2.2/features/step_definitions/html_steps.rb
paperclip-4.3.0 features/step_definitions/html_steps.rb
paperclip-4.2.4 features/step_definitions/html_steps.rb
paperclip-4.2.3 features/step_definitions/html_steps.rb
paperclip-4.2.2 features/step_definitions/html_steps.rb
paperclip-4.2.1 features/step_definitions/html_steps.rb
paperclip-4.2.0 features/step_definitions/html_steps.rb
paperclip_database-2.2.2 features/step_definitions/html_steps.rb
paperclip-4.1.1 features/step_definitions/html_steps.rb
paperclip-4.1.0 features/step_definitions/html_steps.rb
paperclip-3.5.4 features/step_definitions/html_steps.rb
paperclip-4.0.0 features/step_definitions/html_steps.rb
paperclip-3.5.3 features/step_definitions/html_steps.rb
paperclip_database-2.2.1 features/step_definitions/html_steps.rb
paperclip_database-2.2.0 features/step_definitions/html_steps.rb