[openstreetmap/openstreetmap-website] Tag factories (#1367)
notifications at github.com
Thu Nov 17 11:11:44 UTC 2016
gravitystorm commented on this pull request.
> @@ -337,6 +337,7 @@ def test_create
basic_authorization "test at example.com", "test"
rel_id = current_relations(:multi_tag_relation).id
+ create_list(:relation_tag, 4, :relation => current_relations(:multi_tag_relation))
I don't know what the original bug was that's hinted at in the comment. Since the test involves updating an existing tag I though it best to include more than one (the fixtures had four tags, so I stuck with that). As you say, it doesn't seem to matter that the db is in an initially inconsistent state, since after the update, it's the new version that is checked, not the old version that has no tags.
I can propagate the tags if you think it's worthwhile though.
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