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 use saharspecs and its its_call alias :
its_call
its_call(1) do is_expected .to send_message(Foo, :method).once .and change { whatever } end
I've add saharspec aliases to rubocop and RSpec/ImplicitSubject is set to accept single statement
inherit_gem: saharspec: config/rubocop-rspec.yml [...] RSpec/ImplicitSubject: EnforcedStyle: single_statement_only
It report offenses on Implicit subject:
RSpec/ImplicitSubject: Don't use implicit subject. (https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ImplicitSubject) is_expected ^^^^^^^^^^^
I've got the same error when I set RSpec/ImplicitSubject to accept single line
its_call(1) { is_expected.to send_message(Foo, :method).once }
RSpec/ImplicitSubject: EnforcedStyle: single_line_only
RSpec/ImplicitSubject: Don't use implicit subject. (https://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/ImplicitSubject) its_call(1) { is_expected.to send_message(Foo, :method).once } ^^^^^^^^^^^
The text was updated successfully, but these errors were encountered:
The fix is quite simple.
Would you like to turn it into a PR?
Sorry, something went wrong.
Thanks, I was a little overwhelmed by the DSL. I'll try to turn it into a PR with tests today.
I'm closing this, as it turns out that aliases were not properly defined in a third-party library.
Successfully merging a pull request may close this issue.
I use saharspecs and its
its_call
alias :I've add saharspec aliases to rubocop and RSpec/ImplicitSubject is set to accept single statement
It report offenses on Implicit subject:
I've got the same error when I set RSpec/ImplicitSubject to accept single line
The text was updated successfully, but these errors were encountered: