From 32bdd65b49a2765be83c8821360c2d21e5eef4d6 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 30 Jun 2013 22:41:49 +0100 Subject: [PATCH 1/1] Sort tags to make comparision stable --- test/functional/relation_controller_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/relation_controller_test.rb b/test/functional/relation_controller_test.rb index c62496cd6..502404cca 100644 --- a/test/functional/relation_controller_test.rb +++ b/test/functional/relation_controller_test.rb @@ -916,7 +916,7 @@ OSM ## # returns a k->v hash of tags from an xml doc def get_tags_as_hash(a) - a.find("//osm/relation/tag").inject({}) do |h,v| + a.find("//osm/relation/tag").sort_by { |v| v['k'] }.inject({}) do |h,v| h[v['k']] = v['v'] h end -- 2.43.2