[openstreetmap/openstreetmap-website] Add Factorygirl as an alternative to fixtures (#1279)
notifications at github.com
Wed Sep 7 20:22:48 UTC 2016
> def test_diary_entry_comments
> - assert_equal 0, diary_entries(:normal_user_entry_1).comments.count
> - assert_equal 4, diary_entries(:normal_user_geo_entry).comments.count
> + diary = create(:diary_entry)
> + create(:diary_comment, :diary_entry => diary)
Then again maybe we should leave it as is but add an assertion that there are zero comments before that create...
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the rails-dev