Skip to content

Commit

Permalink
Merge pull request #1274 from rubocop/fix-fresh-rubocop-internal-offe…
Browse files Browse the repository at this point in the history
…nces

Fix latest internal affairs offences
  • Loading branch information
pirj authored May 18, 2022
2 parents af2fd8a + 56e3e55 commit 2f46bf1
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ RSpec/DescribedClassModuleWrapping:
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/DescribedClassModuleWrapping

RSpec/Dialect:
Description: This cop enforces custom RSpec dialects.
Description: Enforces custom RSpec dialects.
Enabled: false
PreferredMethods: {}
VersionAdded: '1.33'
Expand Down Expand Up @@ -793,13 +793,13 @@ RSpec/VerifiedDoubles:
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/VerifiedDoubles

RSpec/VoidExpect:
Description: This cop checks void `expect()`.
Description: Checks void `expect()`.
Enabled: true
VersionAdded: '1.16'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/VoidExpect

RSpec/Yield:
Description: This cop checks for calling a block within a stub.
Description: Checks for calling a block within a stub.
Enabled: true
VersionAdded: '1.32'
Reference: https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Yield
Expand Down
6 changes: 3 additions & 3 deletions docs/modules/ROOT/pages/cops_rspec.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -810,7 +810,7 @@ end
| -
|===

This cop enforces custom RSpec dialects.
Enforces custom RSpec dialects.

A dialect can be based on the following RSpec methods:

Expand Down Expand Up @@ -4508,7 +4508,7 @@ end
| -
|===

This cop checks void `expect()`.
Checks void `expect()`.

=== Examples

Expand Down Expand Up @@ -4537,7 +4537,7 @@ expect(something).to be(1)
| -
|===

This cop checks for calling a block within a stub.
Checks for calling a block within a stub.

=== Examples

Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rspec/dialect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module RSpec
# This cop enforces custom RSpec dialects.
# Enforces custom RSpec dialects.
#
# A dialect can be based on the following RSpec methods:
#
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rspec/void_expect.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module RSpec
# This cop checks void `expect()`.
# Checks void `expect()`.
#
# @example
# # bad
Expand Down
2 changes: 1 addition & 1 deletion lib/rubocop/cop/rspec/yield.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
module RuboCop
module Cop
module RSpec
# This cop checks for calling a block within a stub.
# Checks for calling a block within a stub.
#
# @example
# # bad
Expand Down

0 comments on commit 2f46bf1

Please sign in to comment.