0
0
Fork 0

Apply Rubocop Rails/WhereNot (#23448)

* Apply Rubocop Rails/WhereNot

* Update spec for where.not
This commit is contained in:
Nick Schonning 2023-02-08 04:39:57 -05:00 committed by GitHub
parent 11557d1c5a
commit 0592937264
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -118,8 +118,8 @@ RSpec.describe SessionActivation, type: :model do
let(:id) { '1' }
it 'calls where.destroy_all' do
expect(described_class).to receive_message_chain(:where, :destroy_all)
.with('session_id != ?', id).with(no_args)
expect(described_class).to receive_message_chain(:where, :not, :destroy_all)
.with(session_id: id).with(no_args)
described_class.exclusive(id)
end