Skip to content

Commit 6f97d76

Browse files
Rafael Menesespirj
authored andcommitted
Add aruba type to default IgnoredMetadata in RSpec/DescribeClass
1 parent 6be3abd commit 6f97d76

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

config/default.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ RSpec/DescribeClass:
9090
- feature
9191
- system
9292
- mailbox
93+
- aruba
9394
VersionAdded: '1.0'
9495
VersionChanged: '1.44'
9596
StyleGuide: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribeClass

docs/modules/ROOT/pages/cops_rspec.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ Check that the first argument to the top-level describe is a constant.
405405

406406
It can be configured to ignore strings when certain metadata is passed.
407407

408-
Ignores Rails `type` metadata by default.
408+
Ignores Rails and Aruba `type` metadata by default.
409409

410410
=== Examples
411411

@@ -446,7 +446,7 @@ end
446446
| Name | Default value | Configurable values
447447

448448
| IgnoredMetadata
449-
| `{"type"=>["channel", "controller", "helper", "job", "mailer", "model", "request", "routing", "view", "feature", "system", "mailbox"]}`
449+
| `{"type"=>["channel", "controller", "helper", "job", "mailer", "model", "request", "routing", "view", "feature", "system", "mailbox", "aruba"]}`
450450
|
451451
|===
452452

lib/rubocop/cop/rspec/describe_class.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ module RSpec
77
#
88
# It can be configured to ignore strings when certain metadata is passed.
99
#
10-
# Ignores Rails `type` metadata by default.
10+
# Ignores Rails and Aruba `type` metadata by default.
1111
#
1212
# @example `IgnoredMetadata` configuration
1313
#

0 commit comments

Comments
 (0)