Skip to content

Commit

Permalink
Fix documentation for its support
Browse files Browse the repository at this point in the history
  • Loading branch information
pirj committed Apr 24, 2019
1 parent a5542f5 commit bfbe3f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions lib/rubocop/cop/rspec/support/aggregate_examples/its.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ class AggregateExamples < Cop
#
# @example `its` with multi-element array argument is ambiguous
#
# # Does not support `its` with multi-element array argument is
# # ambiguous, and depends on the type of the subject, and depending
# # on in and on argument passed:
# # Does not support `its` with multi-element array argument due to
# # an ambiguity. Transformation depends on the type of the subject:
# # - a Hash: `hash[element1][element2]...`
# # - and arbitrary type: `hash[element1, element2, ...]`
# # It is impossible to infer the type to propose a proper correction.
Expand Down
5 changes: 2 additions & 3 deletions manual/cops_rspec.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,8 @@ its(['headers']) { is_expected.to include(encoding: 'text') }
#### `its` with multi-element array argument is ambiguous

```ruby
# Does not support `its` with multi-element array argument is
# ambiguous, and depends on the type of the subject, and depending
# on in and on argument passed:
# Does not support `its` with multi-element array argument due to
# an ambiguity. Transformation depends on the type of the subject:
# - a Hash: `hash[element1][element2]...`
# - and arbitrary type: `hash[element1, element2, ...]`
# It is impossible to infer the type to propose a proper correction.
Expand Down

0 comments on commit bfbe3f2

Please sign in to comment.