Sha256: 06fca89998f1c1adaa12091515ff9d6eb2a8954ed620f822a7339208c072ffc7

Contents?: true

Size: 465 Bytes

Versions: 21

Compression:

Stored size: 465 Bytes

Contents

Then %r{I should see an image with a path of "([^"]*)"} do |path|
  expect(page).to 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)
  expect(actual).to eq(expected)
end

Version data entries

21 entries across 21 versions & 5 rubygems

Version Path
kt-paperclip-5.4.0 features/step_definitions/html_steps.rb
kt-paperclip-4.4.0 features/step_definitions/html_steps.rb
paperclip-6.1.0 features/step_definitions/html_steps.rb
paperclip-6.0.0 features/step_definitions/html_steps.rb
paperclip-5.3.0 features/step_definitions/html_steps.rb
paperclip-5.2.1 features/step_definitions/html_steps.rb
paperclip-5.2.0 features/step_definitions/html_steps.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/paperclip-5.1.0/features/step_definitions/html_steps.rb
paperclip-5.1.0 features/step_definitions/html_steps.rb
paperclip-5.0.0 features/step_definitions/html_steps.rb
paperclip-4.3.7 features/step_definitions/html_steps.rb
paperclip_jk-5.0.0.beta2 features/step_definitions/html_steps.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/paperclip-4.3.6/features/step_definitions/html_steps.rb
paperclip-5.0.0.beta2 features/step_definitions/html_steps.rb
paperclip-5.0.0.beta1 features/step_definitions/html_steps.rb
paperclip-4.3.6 features/step_definitions/html_steps.rb
paperclip-4.3.5 features/step_definitions/html_steps.rb
paperclip-4.3.4 features/step_definitions/html_steps.rb
paperclip-4.3.3 features/step_definitions/html_steps.rb
paperclip-4.3.2 features/step_definitions/html_steps.rb