Skip to content

Commit

Permalink
Disable MessageExpectation cop
Browse files Browse the repository at this point in the history
  • Loading branch information
bquorning committed Oct 27, 2016
1 parent cdf4d97 commit c8bab6b
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* Optinally ignore method names in the `describe` argument when running the `FilePath` cop. ([@bquorning][])
* Fix regression in how `FilePath` converts alphanumeric class names into paths. ([@bquorning][])
* Add `ImplicitExpect` cop for enforcing `should` vs. `is_expected.to`. ([@backus][])
* Disable `MessageExpectation` cop in the default configuration. ([@bquorning][])

## 1.7.0 (2016-08-24)

Expand Down
2 changes: 1 addition & 1 deletion config/default.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ RSpec/MessageChain:

RSpec/MessageExpectation:
Description: Checks for consistent message expectation style.
Enabled: true
Enabled: false
EnforcedStyle: allow
SupportedStyles:
- allow
Expand Down
2 changes: 1 addition & 1 deletion spec/project/default_config_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,6 @@ def cop_configuration(config_key)
end

it 'includes Enabled: true for every cop' do
expect(cop_configuration('Enabled')).to all(be(true))
expect(cop_configuration('Enabled')).to all(be(true).or(be(false)))
end
end

0 comments on commit c8bab6b

Please sign in to comment.