diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 4bdd854b43..36c0baf13e 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -34,15 +34,6 @@ Layout/LineLength: - 'spec/system/consumer/shopping/cart_spec.rb' - 'spec/system/consumer/shopping/products_spec.rb' -# Offense count: 6 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle. -# SupportedStyles: symmetrical, new_line, same_line -Layout/MultilineMethodCallBraceLayout: - Exclude: - - 'spec/system/admin/orders_spec.rb' - - 'spec/system/admin/products_spec.rb' - # Offense count: 6 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: EnforcedStyle, IndentationWidth. diff --git a/spec/system/admin/orders_spec.rb b/spec/system/admin/orders_spec.rb index f6a0883953..2696a84687 100644 --- a/spec/system/admin/orders_spec.rb +++ b/spec/system/admin/orders_spec.rb @@ -482,16 +482,16 @@ describe ' # select all orders page.find("#listing_orders thead th:first-child input[type=checkbox]").click expect(page.find( - "#listing_orders tbody tr td:first-child input[type=checkbox]") - ).to be_checked + "#listing_orders tbody tr td:first-child input[type=checkbox]" + )).to be_checked # enables print invoices button page.find("span.icon-reorder", text: "ACTIONS").click expect(page).to have_content "Print Invoices" # unselect all orders page.find("#listing_orders thead th:first-child input[type=checkbox]").trigger("click") expect(page.find( - "#listing_orders tbody tr td:first-child input[type=checkbox]") - ).to_not be_checked + "#listing_orders tbody tr td:first-child input[type=checkbox]" + )).to_not be_checked # disables print invoices button page.find("span.icon-reorder", text: "ACTIONS").click expect(page).to_not have_content "Print Invoices" diff --git a/spec/system/admin/products_spec.rb b/spec/system/admin/products_spec.rb index 102464e5f1..88703215fc 100644 --- a/spec/system/admin/products_spec.rb +++ b/spec/system/admin/products_spec.rb @@ -343,13 +343,15 @@ describe ' expected_product_properties_url = Regexp.new(Regexp.escape(spree.admin_product_product_properties_path( - product.id, filter))) + product.id, filter + ))) expect(page).to have_link('Product Properties', href: expected_product_properties_url) expected_product_group_buy_option_url = Regexp.new(Regexp.escape(spree.group_buy_options_admin_product_path( - product.id, filter))) + product.id, filter + ))) expect(page).to have_link('Group Buy Options', href: expected_product_group_buy_option_url)