Skip to content

Commit

Permalink
Update described_class_spec.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
corsonknowles committed Feb 9, 2025
1 parent e223436 commit 67ecc8f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spec/rubocop/cop/rspec/described_class_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,14 @@ module SomeGem
RUBY
end
end

it 'ignores parenthesized namespaces - begin_types' do
expect_no_offenses(<<~RUBY)
describe MyClass do
subject { (MyNamespace)::MyClass }
end
RUBY
end
end

context 'when EnforcedStyle is :explicit' do
Expand Down

0 comments on commit 67ecc8f

Please sign in to comment.