Skip to content

Commit 4c6beec

Browse files
committed
For consistency, also test the around hook
1 parent c3b99d3 commit 4c6beec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

spec/rubocop/cop/rspec/hook_argument_spec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
expect_no_offenses(<<-RUBY)
8282
before { true }
8383
after { true }
84+
around { true }
8485
config.before { true }
8586
RUBY
8687
end
@@ -120,6 +121,8 @@
120121
^^^^^^ Use `:each` for RSpec hooks.
121122
after { true }
122123
^^^^^ Use `:each` for RSpec hooks.
124+
around { true }
125+
^^^^^^ Use `:each` for RSpec hooks.
123126
config.before { true }
124127
^^^^^^ Use `:each` for RSpec hooks.
125128
RUBY
@@ -160,6 +163,8 @@
160163
^^^^^^ Use `:example` for RSpec hooks.
161164
after { true }
162165
^^^^^ Use `:example` for RSpec hooks.
166+
around { true }
167+
^^^^^^ Use `:example` for RSpec hooks.
163168
config.before { true }
164169
^^^^^^ Use `:example` for RSpec hooks.
165170
RUBY

0 commit comments

Comments
 (0)