We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 316a78c commit 9e7ca20Copy full SHA for 9e7ca20
spec/project_spec.rb
@@ -24,8 +24,8 @@
24
start_with_subject = description.match(/\AThis cop (?<verb>.+?) .*/)
25
suggestion = start_with_subject[:verb]&.capitalize if start_with_subject
26
suggestion ||= 'a verb'
27
- expect(start_with_subject).to(
28
- be_nil, "`Description` for `#{name}` should be started with `#{suggestion}` instead of `This cop ...`."
+ expect(start_with_subject.nil?).to(
+ be(true), "`Description` for `#{name}` should be started with `#{suggestion}` instead of `This cop ...`."
29
)
30
end
31
0 commit comments