]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/user_blocks.rb
Enable some more eslint rules from iD rules
[rails.git] / test / factories / user_blocks.rb
index f1ef5b65b02a707ce9ec326054e364d1c61faca6..53864bb0eb6fc5bbf75cf19b36e8d8b50875a6f1 100644 (file)
@@ -1,17 +1,17 @@
-FactoryGirl.define do
+FactoryBot.define do
   factory :user_block do
     sequence(:reason) { |n| "User Block #{n}" }
-    ends_at Time.now + 1.day
+    ends_at { Time.now + 1.day }
 
     user
     association :creator, :factory => :moderator_user
 
     trait :needs_view do
-      needs_view true
+      needs_view { true }
     end
 
     trait :expired do
-      ends_at Time.now - 1.day
+      ends_at { Time.now - 1.day }
     end
 
     trait :revoked do