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 |
---|---|
paperclip-2.5.0 | features/step_definitions/html_steps.rb |