Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
Correct RuboCop offense
Browse files Browse the repository at this point in the history
  • Loading branch information
floriandejonckheere committed Apr 8, 2024
1 parent 07caadd commit d8adc34
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions spec/mosaik/syntax/tree_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@
tree["Foo::Bar"]
tree["Foo::Baz::Bat"]

constants = []
tree.each { |constant| constants << constant.name }
constants = tree.map(&:name)

expect(constants).to eq ["Foo", "Foo::Bar", "Foo::Baz", "Foo::Baz::Bat"]
end
Expand Down

0 comments on commit d8adc34

Please sign in to comment.