openstreetmap-website/test/models/diary_comment_test.rb
Andy Allan 3b3f328ae4 Rework DiaryEntry and DiaryComment model tests to use factories.
Since the database also contains fixtures from other tests, some
counts are dropped and instead tested for inclusion in the results.
2016-09-07 16:27:21 +01:00

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