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 8cfcd26
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 dynamic namespaces - specifically parenthesized evaluations' do
expect_no_offenses(<<~RUBY)
describe MyClass do
subject { (method_that_returns_a_class)::MyClass }
end
RUBY
end
end

context 'when EnforcedStyle is :explicit' do
Expand Down

0 comments on commit 8cfcd26

Please sign in to comment.