Skip to content

Commit 78499d5

Browse files
committed
Fix spec descriptions
1 parent 499ec19 commit 78499d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spec/rubocop/cop/rspec/hook_argument_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
context 'when EnforcedStyle is :each' do
9393
let(:enforced_style) { :each }
9494

95-
it 'detects :each for hooks' do
95+
it 'does not flag :each for hooks' do
9696
expect_no_offenses(<<-RUBY)
9797
before(:each) { true }
9898
after(:each) { true }
@@ -132,7 +132,7 @@
132132
context 'when EnforcedStyle is :example' do
133133
let(:enforced_style) { :example }
134134

135-
it 'detects :example for hooks' do
135+
it 'does not flag :example for hooks' do
136136
expect_no_offenses(<<-RUBY)
137137
before(:example) { true }
138138
after(:example) { true }
@@ -154,7 +154,7 @@
154154
RUBY
155155
end
156156

157-
it 'does not flag hooks without default scopes' do
157+
it 'detects hooks without default scopes' do
158158
expect_offense(<<-RUBY)
159159
before { true }
160160
^^^^^^ Use `:example` for RSpec hooks.

0 commit comments

Comments
 (0)