X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/d5013ad0d2640693af534db47f891ca4fbbf5a4c..3b3f328ae4427ba0d1e3700ceabf7d0870f78dbd:/test/models/diary_comment_test.rb diff --git a/test/models/diary_comment_test.rb b/test/models/diary_comment_test.rb index a32c153f9..13d035ce7 100644 --- a/test/models/diary_comment_test.rb +++ b/test/models/diary_comment_test.rb @@ -1,10 +1,8 @@ require "test_helper" class DiaryCommentTest < ActiveSupport::TestCase - api_fixtures - fixtures :diary_comments - def test_diary_comment_count - assert_equal 4, DiaryComment.count + comment = create(:diary_comment) + assert_includes DiaryComment.all, comment end end