Sha256: 6e4568eabb7c76cf1780df7485c7021c5b705ae7b0bf84a4dc6db2ed86af9568

Contents?: true

Size: 384 Bytes

Versions: 1

Compression:

Stored size: 384 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.should == expected
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
smarter_paperclip-0.3.0 features/step_definitions/html_steps.rb