Since the database also contains fixtures from other tests, some counts are dropped and instead tested for inclusion in the results.
8 lines
196 B
Ruby
8 lines
196 B
Ruby
require "test_helper"
|
|
|
|
class DiaryCommentTest < ActiveSupport::TestCase
|
|
def test_diary_comment_count
|
|
comment = create(:diary_comment)
|
|
assert_includes DiaryComment.all, comment
|
|
end
|
|
end
|