Rubocop: RSpec/ExpectChange

This commit is contained in:
Daniel O'Connor
2026-04-23 13:23:14 +00:00
parent 8d8ee7069c
commit 6f59635ca7
2 changed files with 1 additions and 9 deletions

View File

@@ -311,14 +311,6 @@ RSpec/EmptyLineAfterExample:
RSpec/ExampleLength:
Max: 27
# Offense count: 1
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyle.
# SupportedStyles: method_call, block
RSpec/ExpectChange:
Exclude:
- 'spec/models/crop_spec.rb'
# Offense count: 32
RSpec/ExpectInHook:
Exclude:

View File

@@ -554,7 +554,7 @@ describe Crop do
end
it "destroys companion links" do
expect { crop_a.destroy }.to change { CropCompanion.count }.from(2).to(0)
expect { crop_a.destroy }.to change(CropCompanion, :count).from(2).to(0)
end
end