Skip to content

Commit

Permalink
Merge pull request rubocop#929 from rubocop-hq/extend-the-list-of-rai…
Browse files Browse the repository at this point in the history
…ls-spec-types

Extend list of Rails spec types for DescribeClass
  • Loading branch information
pirj committed Jun 12, 2020
2 parents ddf9694 + 25f313d commit e970b6a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -2,6 +2,8 @@

## Master (Unreleased)

* Extend the list of Rails spec types for `RSpec/DescribeClass`. ([@pirj][])

## 1.40.0 (2020-06-11)

* Add new `RSpec/VariableName` cop. ([@tejasbubane][])
Expand Down
6 changes: 5 additions & 1 deletion lib/rubocop/cop/rspec/describe_class.rb
Expand Up @@ -43,7 +43,11 @@ class DescribeClass < Cop
def_node_matcher :rails_metadata?, <<-PATTERN
(pair
(sym :type)
(sym {:request :feature :system :routing :view})
(sym {
:channel :controller :helper :job :mailer :model :request
:routing :view :feature :system :mailbox
}
)
)
PATTERN

Expand Down

0 comments on commit e970b6a

Please sign in to comment.