mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-21 05:09:15 +00:00
Adpat matcher to capybara v3
This commit is contained in:
@@ -21,7 +21,7 @@ describe "spree/shared/_order_details.html.haml" do
|
||||
|
||||
render
|
||||
|
||||
expect(rendered).to have_content("Paying via: Bartering")
|
||||
expect(rendered).to have_content("Paying via:\nBartering")
|
||||
end
|
||||
|
||||
it "displays payment methods safely" do
|
||||
@@ -29,7 +29,7 @@ describe "spree/shared/_order_details.html.haml" do
|
||||
|
||||
render
|
||||
|
||||
expect(rendered).to have_content("Paying via: Bar<script>evil</script>ter→ing")
|
||||
expect(rendered).to have_content("Paying via:\nBar<script>evil</script>ter→ing")
|
||||
end
|
||||
|
||||
it "shows the last used payment method" do
|
||||
@@ -51,6 +51,6 @@ describe "spree/shared/_order_details.html.haml" do
|
||||
|
||||
render
|
||||
|
||||
expect(rendered).to have_content("Paying via: Credit")
|
||||
expect(rendered).to have_content("Paying via:\nCredit")
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user