- assert_equal 0, diary_entries(:normal_user_entry_1).visible_comments.count
- assert_equal 1, diary_entries(:normal_user_geo_entry).visible_comments.count
+ diary = create(:diary_entry)
+ create(:diary_comment, :diary_entry => diary)
+ create(:diary_comment, :diary_entry => diary, :visible => false)
+ assert_equal 1, diary.visible_comments.count
+ assert_equal 2, diary.comments.count