[openstreetmap/openstreetmap-website] Refactor diary tests (#1285)
notifications at github.com
Wed Sep 14 18:08:14 UTC 2016
> def test_list_user
> + diary_entry = create(:diary_entry)
> + geo_entry = create(:diary_entry, :latitude => 51.50763, :longitude => -0.10781)
So the problem here is that by only creating those two entries we are no longer testing that the right posts get selected because there are no non-matching posts in the database. Much the same applies to the other list tests.
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