features/step_definitions/html_steps.rb in paperclip-4.3.0 vs features/step_definitions/html_steps.rb in paperclip-4.3.1
- old
+ new
@@ -1,7 +1,7 @@
Then %r{I should see an image with a path of "([^"]*)"} do |path|
- page.should have_css("img[src^='#{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?://}
@@ -9,7 +9,7 @@
else
visit(web_file)
page.body
end
actual.force_encoding("UTF-8") if actual.respond_to?(:force_encoding)
- actual.should == expected
+ expect(actual).to eq(expected)
end