From 5b703a02cdc8e3fc4b9efd6b9c823379c3e84fe3 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Tue, 17 Sep 2019 18:52:45 +0100 Subject: [PATCH] Transpec feature spec brought from spree_backend --- .../admin/configuration/taxonomies_spec.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/spec/features/admin/configuration/taxonomies_spec.rb b/spec/features/admin/configuration/taxonomies_spec.rb index a1b20355d6..6a5b96fb3f 100644 --- a/spec/features/admin/configuration/taxonomies_spec.rb +++ b/spec/features/admin/configuration/taxonomies_spec.rb @@ -14,8 +14,8 @@ describe "Taxonomies" do create(:taxonomy, :name => 'Brand') create(:taxonomy, :name => 'Categories') click_link "Taxonomies" - within_row(1) { page.should have_content("Brand") } - within_row(2) { page.should have_content("Categories") } + within_row(1) { expect(page).to have_content("Brand") } + within_row(2) { expect(page).to have_content("Categories") } end end @@ -26,16 +26,16 @@ describe "Taxonomies" do end it "should allow an admin to create a new taxonomy" do - page.should have_content("New Taxonomy") + expect(page).to have_content("New Taxonomy") fill_in "taxonomy_name", :with => "sports" click_button "Create" - page.should have_content("successfully created!") + expect(page).to have_content("successfully created!") end it "should display validation errors" do fill_in "taxonomy_name", :with => "" click_button "Create" - page.should have_content("can't be blank") + expect(page).to have_content("can't be blank") end end @@ -46,8 +46,8 @@ describe "Taxonomies" do within_row(1) { click_icon :edit } fill_in "taxonomy_name", :with => "sports 99" click_button "Update" - page.should have_content("successfully updated!") - page.should have_content("sports 99") + expect(page).to have_content("successfully updated!") + expect(page).to have_content("sports 99") end end end