Fix rubocop issues in feature spec

This commit is contained in:
luisramos0
2019-09-17 18:56:55 +01:00
parent a96b56239c
commit 6855e5c8f4

View File

@@ -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")