lib/rubocop/cop/rspec/hook_argument.rb in rubocop-rspec-2.11.1 vs lib/rubocop/cop/rspec/hook_argument.rb in rubocop-rspec-2.12.0

- old
+ new

@@ -8,11 +8,11 @@ # This cop checks for consistent style when specifying RSpec # hooks which run for each example. There are three supported # styles: "implicit", "each", and "example." All styles have # the same behavior. # - # @example when configuration is `EnforcedStyle: implicit` + # @example `EnforcedStyle: implicit` (default) # # bad # before(:each) do # # ... # end # @@ -24,11 +24,11 @@ # # good # before do # # ... # end # - # @example when configuration is `EnforcedStyle: each` + # @example `EnforcedStyle: each` # # bad # before(:example) do # # ... # end # @@ -40,10 +40,10 @@ # # good # before(:each) do # # ... # end # - # @example when configuration is `EnforcedStyle: example` + # @example `EnforcedStyle: example` # # bad # before(:each) do # # ... # end #