Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable MessageExpectation cop #230

Merged
merged 1 commit into from
Oct 27, 2016
Merged

Conversation

bquorning
Copy link
Collaborator

@bquorning
Copy link
Collaborator Author

@backus Where do we put the configuration for disabled cops?

@backus
Copy link
Collaborator

backus commented Oct 27, 2016

@bquorning. Lets just toss it in the default.yml for now. I don't think we need to maintain two files yet

@backus
Copy link
Collaborator

backus commented Oct 27, 2016

@bquorning once this is merged can you do a minor version bump and release to rubygems?

@bquorning
Copy link
Collaborator Author

What I meant was: how do I get a green build? ;-)

@backus
Copy link
Collaborator

backus commented Oct 27, 2016

oh haha. I guess we need to update that test.

@backus
Copy link
Collaborator

backus commented Oct 27, 2016

@bquorning the failing test can be updated to:

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

Basically we are asserting that it is present and a boolean

Users have expressed confusion over this cop; see

 - #23
 - #169
 - #218
 - #224
 - #229
@bquorning bquorning force-pushed the disable-message_expectation-cop branch from a3e463c to 068d1ef Compare October 27, 2016 17:59
@bquorning
Copy link
Collaborator Author

@backus Was that a +1?

@backus backus merged commit dd71fab into master Oct 27, 2016
@backus backus deleted the disable-message_expectation-cop branch October 27, 2016 18:20
@backus
Copy link
Collaborator

backus commented Oct 27, 2016

Yeah sorry I was on my phone.

markburns pushed a commit to markburns/rubocop-rails-ddd that referenced this pull request Nov 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants