-require 'test_helper'
+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