lib/rubocop/cop/rspec/hook_argument.rb in rubocop-rspec-1.21.0 vs lib/rubocop/cop/rspec/hook_argument.rb in rubocop-rspec-1.22.0
- old
+ new
@@ -11,52 +11,52 @@
# the same behavior.
#
# @example when configuration is `EnforcedStyle: implicit`
# # bad
# before(:each) do
- # ...
+ # # ...
# end
#
# # bad
# before(:example) do
- # ...
+ # # ...
# end
#
# # good
# before do
- # ...
+ # # ...
# end
#
# @example when configuration is `EnforcedStyle: each`
# # bad
# before(:example) do
- # ...
+ # # ...
# end
#
# # good
# before do
- # ...
+ # # ...
# end
#
# # good
# before(:each) do
- # ...
+ # # ...
# end
#
# @example when configuration is `EnforcedStyle: example`
# # bad
# before(:each) do
- # ...
+ # # ...
# end
#
# # bad
# before do
- # ...
+ # # ...
# end
#
# # good
# before(:example) do
- # ...
+ # # ...
# end
class HookArgument < Cop
include ConfigurableEnforcedStyle
IMPLICIT_MSG = 'Omit the default `%<scope>p` ' \