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 a64bebc
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 a class with a dynamic namespace' do
expect_no_offenses(<<~RUBY)
describe MyClass do
subject { (("MyClass" + "3").constantize)::MyClass }
end
RUBY
end
end

context 'when EnforcedStyle is :explicit' do
Expand Down

0 comments on commit a64bebc

Please sign in to comment.