From 6855e5c8f4a33e64aea4e8a827aabf5c2ec8c8ae Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Tue, 17 Sep 2019 18:56:55 +0100 Subject: [PATCH] Fix rubocop issues in feature spec --- spec/features/admin/configuration/tax_categories_spec.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/spec/features/admin/configuration/tax_categories_spec.rb b/spec/features/admin/configuration/tax_categories_spec.rb index 916811df0c..4b9714241e 100644 --- a/spec/features/admin/configuration/tax_categories_spec.rb +++ b/spec/features/admin/configuration/tax_categories_spec.rb @@ -11,7 +11,7 @@ describe "Tax Categories" do context "admin visiting tax categories list" do it "should display the existing tax categories" do - create(:tax_category, :name => "Clothing", :description => "For Clothing") + create(:tax_category, name: "Clothing", description: "For Clothing") click_link "Tax Categories" expect(page).to have_content("Listing Tax Categories") within_row(1) do @@ -30,8 +30,8 @@ describe "Tax Categories" do it "should be able to create new tax category" do expect(page).to have_content("New Tax Category") - fill_in "tax_category_name", :with => "sports goods" - fill_in "tax_category_description", :with => "sports goods desc" + fill_in "tax_category_name", with: "sports goods" + fill_in "tax_category_description", with: "sports goods desc" click_button "Create" expect(page).to have_content("successfully created!") end @@ -47,7 +47,7 @@ describe "Tax Categories" do create(:tax_category) click_link "Tax Categories" within_row(1) { click_icon :edit } - fill_in "tax_category_description", :with => "desc 99" + fill_in "tax_category_description", with: "desc 99" click_button "Update" expect(page).to have_content("successfully updated!") expect(page).to have_content("desc 99")