Skip to content

Commit

Permalink
Fix Rubocop issues
Browse files Browse the repository at this point in the history
  • Loading branch information
timriley committed Apr 28, 2024
1 parent f865c4d commit caddc71
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions spec/unit/hanami/validator_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@

expect(result.errors.to_h).to eq(number: ["must be an integer"])

errors = []
result.errors.each do |error|
errors << error.text
end
errors = result.errors.map(&:text)

expect(errors).to match_array(["must be an integer"])
end
Expand Down

0 comments on commit caddc71

Please sign in to comment.