about summary refs log tree commit diff
path: root/spec/models
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-08 04:39:57 -0500
committerGitHub <noreply@github.com>2023-02-08 10:39:57 +0100
commit0592937264d7a8cb4f1ea56be403f48e0801b2b7 (patch)
treed2f6bff15de59e700b303bc196044d0e336d4096 /spec/models
parent11557d1c5a4ecb44cf602eabf0c9bd2882514b3a (diff)
Apply Rubocop Rails/WhereNot (#23448)
* Apply Rubocop Rails/WhereNot

* Update spec for where.not
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/session_activation_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/session_activation_spec.rb b/spec/models/session_activation_spec.rb
index 450dc1399..8db06c622 100644
--- a/spec/models/session_activation_spec.rb
+++ b/spec/models/session_activation_spec.rb
@@ -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