Sha256: 07bb50b101acb9c6fa0a58becfa198bac1db1b4dedd2aa1d61838dee33f9ab32

Contents?: true

Size: 510 Bytes

Versions: 14

Compression:

Stored size: 510 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

14 entries across 14 versions & 1 rubygems

Version Path
kt-paperclip-7.2.2 features/step_definitions/html_steps.rb
kt-paperclip-7.2.1 features/step_definitions/html_steps.rb
kt-paperclip-7.2.0 features/step_definitions/html_steps.rb
kt-paperclip-6.4.2 features/step_definitions/html_steps.rb
kt-paperclip-7.1.1 features/step_definitions/html_steps.rb
kt-paperclip-7.1.0 features/step_definitions/html_steps.rb
kt-paperclip-7.0.1 features/step_definitions/html_steps.rb
kt-paperclip-7.0.0 features/step_definitions/html_steps.rb
kt-paperclip-6.4.1 features/step_definitions/html_steps.rb
kt-paperclip-6.4.0 features/step_definitions/html_steps.rb
kt-paperclip-6.3.0 features/step_definitions/html_steps.rb
kt-paperclip-6.2.2 features/step_definitions/html_steps.rb
kt-paperclip-6.2.1 features/step_definitions/html_steps.rb
kt-paperclip-6.2.0 features/step_definitions/html_steps.rb