Skip to content

Commit

Permalink
Address Rubocop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
timriley committed Sep 2, 2024
1 parent 74b652e commit d446cd8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion spec/integration/hanami/controller/rack_exception_spec.rb
Original file line number Diff line number Diff line change
@@ -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)
Expand Down
2 changes: 1 addition & 1 deletion spec/support/fixtures.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions spec/unit/hanami/action/flash_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@
end
end

# rubocop:disable Style/MapIntoArray
describe "#each" do
let(:input_hash) { {a: "val"} }

Expand All @@ -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"} }
Expand Down

0 comments on commit d446cd8

Please sign in to comment.