Skip to content

Commit

Permalink
[Fix rubocop#9328] Tests for code next to inline comments
Browse files Browse the repository at this point in the history
  • Loading branch information
thearjunmdas committed Jul 14, 2021
1 parent 1fb68ff commit e76e566
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/rubocop/cop/style/mutable_constant_spec.rb
Expand Up @@ -206,6 +206,8 @@
expect_offense(<<~RUBY)
X = [1, 2, 3] # shareable_constant_value: literal
^^^^^^^^^ Freeze mutable objects assigned to constants.
Y = [4, 5, 6]
^^^^^^^^^ Freeze mutable objects assigned to constants.
RUBY
end

Expand Down

0 comments on commit e76e566

Please sign in to comment.