Skip to content

Commit

Permalink
fixup! Improve examples in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj committed Aug 8, 2020
1 parent 1a3d3fe commit f833dda
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/rubocop/cop/rspec/multiple_memoized_helpers.rb
Expand Up @@ -55,20 +55,20 @@ module RSpec
# end
# end
#
# @example with AllowSubject configuration
# @example when disabling AllowSubject configuration
#
# # rubocop.yml
# # RSpec/MultipleMemoizedHelpers:
# # AllowSubject: false
#
# # bad - `subject` counts towards memoized helpers
# describe MyClass do
# subject { {} }
# let(:foo) { [] }
# let(:bar) { [] }
# let!(:baz) { [] }
# let(:qux) { [] }
# let(:quux) { [] }
# subject { {} }
# end
#
# @example with Max configuration
Expand Down
4 changes: 2 additions & 2 deletions manual/cops_rspec.md
Expand Up @@ -2179,7 +2179,7 @@ describe MyClass do
end
end
```
#### with AllowSubject configuration
#### when disabling AllowSubject configuration

```ruby
# rubocop.yml
Expand All @@ -2188,12 +2188,12 @@ end

# bad - `subject` counts towards memoized helpers
describe MyClass do
subject { {} }
let(:foo) { [] }
let(:bar) { [] }
let!(:baz) { [] }
let(:qux) { [] }
let(:quux) { [] }
subject { {} }
end
```
#### with Max configuration
Expand Down

0 comments on commit f833dda

Please sign in to comment.