]> git.openstreetmap.org Git - rails.git/blobdiff - test/factories/changeset_comments.rb
Fix test which was accidentally testing as the entry user twice
[rails.git] / test / factories / changeset_comments.rb
index 5fb2621843ee0925cceee004fd496f07768e9cea..fb3eef8953d7183aa2942b5594a3b9fe5e9526d8 100644 (file)
@@ -1,12 +1,10 @@
-FactoryGirl.define do
+FactoryBot.define do
   factory :changeset_comment do
     sequence(:body) { |n| "Changeset comment #{n}" }
     visible true
 
   factory :changeset_comment do
     sequence(:body) { |n| "Changeset comment #{n}" }
     visible true
 
-    # FIXME: needs changeset factory
-    changeset_id 3
+    changeset
 
 
-    # FIXME: needs user factory
-    author_id 1
+    association :author, :factory => :user
   end
 end
   end
 end