Skip to content

Commit 7e6691d

Browse files
authored
Merge pull request #2118 from rubocop/flaky
Remove test for safety configuration of cops documented with `@safety` YARD tag
2 parents 93d9f14 + 623bf74 commit 7e6691d

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

spec/project/default_config_spec.rb

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -102,18 +102,4 @@ def cop_configuration(config_key)
102102
)
103103
end
104104
end
105-
106-
it 'is expected that all cops documented with `@safety` are `Safe: false` ' \
107-
'or `SafeAutoCorrect: false`' do
108-
unsafe_cop_names.each do |cop_name|
109-
unsafe = default_config[cop_name]['Safe'] == false ||
110-
default_config[cop_name]['SafeAutoCorrect'] == false
111-
expect(unsafe).to(
112-
be(true),
113-
"`#{cop_name}` cop should be set `Safe: false` or " \
114-
'`SafeAutoCorrect: false` because `@safety` YARD tag exists.'
115-
)
116-
YARD::Registry.clear
117-
end
118-
end
119105
end

0 commit comments

Comments
 (0)