]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/user_preferences.rb
Merge remote-tracking branch 'upstream/pull/4145'
[rails.git] / test / factories / user_preferences.rb
index 552cfcd75e5c922dbc93019ded21cf9460e9e036..6d33e8caaef5c48ce0e0b3dec70ea617001a0f46 100644 (file)
@@ -1,9 +1,8 @@
-FactoryGirl.define do
+FactoryBot.define do
   factory :user_preference do
     sequence(:k) { |n| "Key #{n}" }
     sequence(:v) { |n| "Value #{n}" }
 
-    # FIXME: needs user factory
-    user_id 1
+    user
   end
 end