Skip to content

Commit

Permalink
Address rubocop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
timriley committed Nov 1, 2024
1 parent ae58861 commit b084e07
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/support/fixtures.rb
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ def handle(*, res)
class IterateCookiesAction < Hanami::Action
include Hanami::Action::Cookies

# rubocop:disable Style/MapIntoArray
def handle(*, res)
result = []
res.cookies.each do |key, value|
Expand All @@ -484,6 +485,7 @@ def handle(*, res)

res.body = result.join(", ")
end
# rubocop:enable Style/MapIntoArray
end

class ThrowCodeAction < Hanami::Action
Expand Down
2 changes: 2 additions & 0 deletions spec/unit/hanami/action/flash_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@
describe "#each" do
let(:input_hash) { {a: "val"} }

# rubocop:disable Style/MapIntoArray
it "iterates data" do
accumulator = []

Expand All @@ -70,6 +71,7 @@

expect(accumulator).to eq(input_hash.to_a)
end
# rubocop:enable Style/MapIntoArray
end

describe "#map" do
Expand Down

0 comments on commit b084e07

Please sign in to comment.