diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 16b61e87e7..dd41add2d0 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -16,14 +16,6 @@ Gemspec/RequiredRubyVersion: - 'engines/order_management/order_management.gemspec' - 'engines/web/web.gemspec' -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: EnforcedStyle, IndentationWidth. -# SupportedStyles: special_inside_parentheses, consistent, align_braces -Layout/FirstHashElementIndentation: - Exclude: - - 'spec/services/products_renderer_spec.rb' - # Offense count: 9 # This cop supports safe autocorrection (--autocorrect). # Configuration parameters: AllowMultipleStyles, EnforcedHashRocketStyle, EnforcedColonStyle, EnforcedLastArgumentHashStyle. diff --git a/spec/services/products_renderer_spec.rb b/spec/services/products_renderer_spec.rb index 78ec2aae8e..9cbf7dc3f5 100644 --- a/spec/services/products_renderer_spec.rb +++ b/spec/services/products_renderer_spec.rb @@ -70,10 +70,10 @@ describe ProductsRenderer do it "filters products by name_or_meta_keywords_or_variants_display_as_or_" \ "variants_display_name_or_supplier_name_cont" do products_renderer = ProductsRenderer.new(distributor, order_cycle, customer, { q: { - "#{[:name, :meta_keywords, :variants_display_as, - :variants_display_name, :supplier_name] - .join('_or_')}_cont": "apples", - } }) + "#{[:name, :meta_keywords, :variants_display_as, + :variants_display_name, :supplier_name] + .join('_or_')}_cont": "apples", + } }) products = products_renderer.send(:products) expect(products).to eq([product_apples]) end