diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index f3efe519c02..67c5216f872 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -638,12 +638,6 @@ Rails/ResponseParsedBody: - 'spec/controllers/spree/credit_cards_controller_spec.rb' - 'spec/controllers/user_registrations_controller_spec.rb' -# Offense count: 1 -# This cop supports unsafe autocorrection (--autocorrect-all). -Rails/RootPathnameMethods: - Exclude: - - 'spec/lib/reports/orders_and_fulfillment/order_cycle_customer_totals_report_spec.rb' - # Offense count: 7 # This cop supports unsafe autocorrection (--autocorrect-all). # Configuration parameters: EnforcedStyle. diff --git a/spec/lib/reports/orders_and_fulfillment/order_cycle_customer_totals_report_spec.rb b/spec/lib/reports/orders_and_fulfillment/order_cycle_customer_totals_report_spec.rb index 8ca2d091303..d9b171ccef1 100644 --- a/spec/lib/reports/orders_and_fulfillment/order_cycle_customer_totals_report_spec.rb +++ b/spec/lib/reports/orders_and_fulfillment/order_cycle_customer_totals_report_spec.rb @@ -35,7 +35,7 @@ end end let(:comparison_report) do - File.read(Rails.root.join(report_file_name)) + Rails.root.join(report_file_name).read end let(:report_file_name) do "spec/fixtures/reports/orders_and_fulfillment/order_cycle_customer_totals_report.csv"