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 have the code:
RSpec.describe AdvertForm, type: :model do subject(:form) { described_class.new } specify do expect(form).not_to be_valid end end
I run rubocop:
ydakuka@yauhenid:~/Work/project$ bin/rails_docker rubocop spec/forms/advert_form_spec.rb Inspecting 1 file . 1 file inspected, no offenses detected
I expected to receive the following code:
RSpec.describe AdvertForm, type: :model do subject(:form) { described_class.new } specify do expect(form).to be_invalid end end
The text was updated successfully, but these errors were encountered:
Add new RSpec/Rails/NegationBeValid cop
RSpec/Rails/NegationBeValid
54c507a
Fix: #1660
afe023c
b98d41f
67dcf80
Fix: rubocop/rubocop-rspec#1660
b4e6f5c
Successfully merging a pull request may close this issue.
Actual behavior
I have the code:
I run rubocop:
Expected behavior
I expected to receive the following code:
The text was updated successfully, but these errors were encountered: