Sha256: 50d8c0a36536558753224bd8ed8215cbcbedb1dae030f950290ca0284a5b085e

Contents?: true

Size: 464 Bytes

Versions: 5

Compression:

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

5 entries across 5 versions & 1 rubygems

Version Path
paperclip_database-3.1.0 features/step_definitions/html_steps.rb
paperclip_database-3.0.0 features/step_definitions/html_steps.rb
paperclip_database-2.4.0 features/step_definitions/html_steps.rb
paperclip_database-2.3.1 features/step_definitions/html_steps.rb
paperclip_database-2.3.0 features/step_definitions/html_steps.rb