From fd5adab0d5e5df55879a5b8bbd64a3129c44f3ff Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Thu, 10 Dec 2020 23:27:56 +0000 Subject: [PATCH] Adapt matchers to capybara v3 --- spec/features/consumer/account_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/features/consumer/account_spec.rb b/spec/features/consumer/account_spec.rb index a721235773..84cb4e3731 100644 --- a/spec/features/consumer/account_spec.rb +++ b/spec/features/consumer/account_spec.rb @@ -65,8 +65,8 @@ feature ' href: "#{distributor2.permalink}/shop", count: 1) expect(page).not_to have_content distributor_without_orders.name - expect(page).to have_content distributor1.name + " " + "Balance due" - expect(page).to have_content distributor_credit.name + " Credit" + expect(page).to have_content distributor1.name + "\n" + "Balance due" + expect(page).to have_content distributor_credit.name + "\nCredit" # It reveals table of orders for distributors when clicked expand_active_table_node distributor1.name @@ -98,7 +98,7 @@ feature ' context "without any completed orders" do it "displays an appropriate message" do visit "/account" - expect(page).to have_content { t :you_have_no_orders_yet } + expect(page).to have_content I18n.t(:you_have_no_orders_yet) end end end