summaryrefslogtreecommitdiff
path: root/spec/migrations/migrate_bot_type_to_user_type_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/migrations/migrate_bot_type_to_user_type_spec.rb')
-rw-r--r--spec/migrations/migrate_bot_type_to_user_type_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/migrations/migrate_bot_type_to_user_type_spec.rb b/spec/migrations/migrate_bot_type_to_user_type_spec.rb
index 2b85f2a7f69..fcd7f1ebcb8 100644
--- a/spec/migrations/migrate_bot_type_to_user_type_spec.rb
+++ b/spec/migrations/migrate_bot_type_to_user_type_spec.rb
@@ -15,6 +15,6 @@ RSpec.describe MigrateBotTypeToUserType, :migration do
migrate!
- expect(users.where('user_type IS NOT NULL').map(&:user_type)).to match_array([1, 2, 3])
+ expect(users.where.not(user_type: nil).map(&:user_type)).to match_array([1, 2, 3])
end
end