]> git.openstreetmap.org Git - rails.git/blobdiff - test/models/changeset_comment_test.rb
Remove remaining references to fixtures.
[rails.git] / test / models / changeset_comment_test.rb
index 8215ce129f842956fe0bda591b95b3547394103e..0999ea5054c937c9a3a05075dd1ae73c7a7cc4c8 100644 (file)
@@ -2,8 +2,6 @@
 require "test_helper"
 
 class ChangesetCommentTest < ActiveSupport::TestCase
-  fixtures :changesets
-
   # validations
   def test_does_not_accept_invalid_author
     comment = create(:changeset_comment)
@@ -33,8 +31,9 @@ class ChangesetCommentTest < ActiveSupport::TestCase
   end
 
   def test_comments_of_changeset_count
-    create_list(:changeset_comment, 3, :changeset_id => changesets(:normal_user_closed_change).id)
-    assert_equal 3, Changeset.find(changesets(:normal_user_closed_change).id).comments.count
+    changeset = create(:changeset)
+    create_list(:changeset_comment, 3, :changeset_id => changeset.id)
+    assert_equal 3, Changeset.find(changeset.id).comments.count
   end
 
   def test_body_valid