]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/user_blocks.rb
Check the oauth token and then use the capabilities directly
[rails.git] / test / factories / user_blocks.rb
index d206511b4616c7053e2d3b7c49e9e8895f5db7be..53864bb0eb6fc5bbf75cf19b36e8d8b50875a6f1 100644 (file)
@@ -1,17 +1,17 @@
 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