diff --git a/spec/rubocop/capybara/description_extractor_spec.rb b/spec/rubocop/capybara/description_extractor_spec.rb index 9fad89a..594558c 100644 --- a/spec/rubocop/capybara/description_extractor_spec.rb +++ b/spec/rubocop/capybara/description_extractor_spec.rb @@ -58,6 +58,7 @@ def stub_cop_const(name) end before do + YARD::Registry.clear stub_cop_const('Foo') stub_cop_const('Undocumented') end