diff --git a/spec/integration/hanami/controller/rack_exception_spec.rb b/spec/integration/hanami/controller/rack_exception_spec.rb index b7eab7a1..a938d1e1 100644 --- a/spec/integration/hanami/controller/rack_exception_spec.rb +++ b/spec/integration/hanami/controller/rack_exception_spec.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true RSpec.describe "Exception notifiers integration" do - let(:env) { Hash[] } + let(:env) { {} } it "reference error in rack.exception" do expect { RackExceptionAction.new.call(env) }.to raise_error(RackExceptionAction::TestException) diff --git a/spec/support/fixtures.rb b/spec/support/fixtures.rb index 083dc040..5a4f8a32 100644 --- a/spec/support/fixtures.rb +++ b/spec/support/fixtures.rb @@ -478,7 +478,7 @@ class IterateCookiesAction < Hanami::Action def handle(*, res) result = [] - res.cookies.each do |key, value| # rubocop:disable Style/MapIntoArray + res.cookies.each do |key, value| result << "'#{key}' has value '#{value}'" end diff --git a/spec/unit/hanami/action/flash_spec.rb b/spec/unit/hanami/action/flash_spec.rb index ed4b5645..6d6cec06 100644 --- a/spec/unit/hanami/action/flash_spec.rb +++ b/spec/unit/hanami/action/flash_spec.rb @@ -58,7 +58,6 @@ end end - # rubocop:disable Style/MapIntoArray describe "#each" do let(:input_hash) { {a: "val"} } @@ -72,7 +71,6 @@ expect(accumulator).to eq(input_hash.to_a) end end - # rubocop:enable Style/MapIntoArray describe "#map" do let(:input_hash) { {a: "val"} }