From 773f733c8ea39005f34a832ff7e908c0102d0646 Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Thu, 10 Dec 2020 23:05:15 +0000 Subject: [PATCH] Adapt matchers to capybara v3 --- spec/views/spree/admin/orders/edit.html.haml_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/views/spree/admin/orders/edit.html.haml_spec.rb b/spec/views/spree/admin/orders/edit.html.haml_spec.rb index 8a8c5b03f8..4394065394 100644 --- a/spec/views/spree/admin/orders/edit.html.haml_spec.rb +++ b/spec/views/spree/admin/orders/edit.html.haml_spec.rb @@ -31,9 +31,9 @@ describe "spree/admin/orders/edit.html.haml" do it "displays order shipping costs, transaction fee and order total" do render - expect(rendered).to have_content("Shipping: UPS Ground $6.00") - expect(rendered).to have_content("Transaction fee: $10.00") - expect(rendered).to have_content("Order Total $36.00") + expect(rendered).to have_content("Shipping Method\nUPS Ground $6.00") + expect(rendered).to have_content("Transaction fee:\n\n$10.00") + expect(rendered).to have_content("Order Total\n$36.00") end end end