[openstreetmap/openstreetmap-website] Tag factories (#1367)
Andy Allan
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
def test_update_relation_tags
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:
https://github.com/openstreetmap/openstreetmap-website/pull/1367
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20161117/f29f27d2/attachment.html>
More information about the rails-dev
mailing list