Skip to content

Commit

Permalink
Add string key test case
Browse files Browse the repository at this point in the history
  • Loading branch information
r7kamura committed Aug 18, 2023
1 parent 594ffa5 commit 87a6f71
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/rubocop/cop/rspec/metadata_style_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,15 @@
end
end

context 'with string key metadata' do
it 'registers no offense' do
expect_no_offenses(<<~RUBY)
describe 'Something', 'a' => true do
end
RUBY
end
end

context 'with 1 boolean keyword arguments metadata' do
it 'registers offense' do
expect_offense(<<~RUBY)
Expand Down

0 comments on commit 87a6f71

Please sign in to comment.