X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ba092de0ac0e9529691baf9c6a059beb6a8b9204..5d0ea2879632a950405c40823503640cbec65e8f:/test/models/changeset_comment_test.rb?ds=inline diff --git a/test/models/changeset_comment_test.rb b/test/models/changeset_comment_test.rb index 64fbb3663..5ef0c1d93 100644 --- a/test/models/changeset_comment_test.rb +++ b/test/models/changeset_comment_test.rb @@ -33,8 +33,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