about summary refs log tree commit diff
path: root/spec/models
diff options
context:
space:
mode:
authorNick Schonning <nschonni@gmail.com>2023-02-17 21:22:01 -0500
committerGitHub <noreply@github.com>2023-02-18 03:22:01 +0100
commit6d42820e5df4a2282af1194a98789b45027aabce (patch)
tree041be6d2804a5840ee04e2ef9429fa5c6a4b40e5 /spec/models
parentac59d6f19f00f1503343cd587c4238dc0038127a (diff)
Autofix Rubocop Lint/AmbiguousOperator (#23680)
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/user_role_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/user_role_spec.rb b/spec/models/user_role_spec.rb
index abf7d0e27..7294d14fe 100644
--- a/spec/models/user_role_spec.rb
+++ b/spec/models/user_role_spec.rb
@@ -139,7 +139,7 @@ RSpec.describe UserRole, type: :model do
     end
 
     it 'has negative position' do
-      expect(subject.position).to eq -1
+      expect(subject.position).to eq(-1)
     end
   end
 
@@ -159,7 +159,7 @@ RSpec.describe UserRole, type: :model do
     end
 
     it 'has negative position' do
-      expect(subject.position).to eq -1
+      expect(subject.position).to eq(-1)
     end
   end