Skip to content

Commit 25f313d

Browse files
committed
1 parent ddf9694 commit 25f313d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
## Master (Unreleased)
44

5+
* Extend the list of Rails spec types for `RSpec/DescribeClass`. ([@pirj][])
6+
57
## 1.40.0 (2020-06-11)
68

79
* Add new `RSpec/VariableName` cop. ([@tejasbubane][])

lib/rubocop/cop/rspec/describe_class.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@ class DescribeClass < Cop
4343
def_node_matcher :rails_metadata?, <<-PATTERN
4444
(pair
4545
(sym :type)
46-
(sym {:request :feature :system :routing :view})
46+
(sym {
47+
:channel :controller :helper :job :mailer :model :request
48+
:routing :view :feature :system :mailbox
49+
}
50+
)
4751
)
4852
PATTERN
4953

0 commit comments

Comments
 (0)