We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I think the RSpec/MultipleExpectations cop detect a false positive in the following case:
RSpec/MultipleExpectations
def my_method Rails.logger.info do 'my string' end end
it 'has correct logger output' do expect(Rails.logger).to have_received(:info) do |&block| expect(block.call).to eq 'my string' end end
I got this message:
RSpec/MultipleExpectations: Example has too many expectations [2/1].
Should this case be allowed by rubocop ? Thanks !
- rubocop 0.53.0 - rubocop-rspec 1.24.0
The text was updated successfully, but these errors were encountered:
Duplicate of #379 - see for discussion and workarounds
Sorry, something went wrong.
Sorry ! Haven't seen it... Thanks !
No branches or pull requests
I think the
RSpec/MultipleExpectations
cop detect a false positive in the following case:I got this message:
Should this case be allowed by rubocop ? Thanks !
The text was updated successfully, but these errors were encountered: