mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix rubocop issues in feature spec
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user