Fix RSpec/DescribedClass
cop (#25104)
This commit is contained in:
6
spec/controllers/.rubocop.yml
Normal file
6
spec/controllers/.rubocop.yml
Normal file
@ -0,0 +1,6 @@
|
||||
inherit_from: ../../.rubocop.yml
|
||||
|
||||
# Anonymous controllers in specs cannot access described_class
|
||||
# https://github.com/rubocop/rubocop-rspec/blob/master/lib/rubocop/cop/rspec/described_class.rb#L36-L39
|
||||
RSpec/DescribedClass:
|
||||
SkipBlocks: true
|
Reference in New Issue
Block a user