]> git.openstreetmap.org Git - rails.git/blobdiff - test/controllers/api/relations_controller_test.rb
Merge branch 'master' into tag-colour-preview-rebase
[rails.git] / test / controllers / api / relations_controller_test.rb
index e5390922d64446467e44f9b802c98059fa28b401..4d2969026aa3621dea4936c2abf674425880553d 100644 (file)
@@ -133,7 +133,7 @@ module Api
       assert_response :success
 
       # count one osm element
       assert_response :success
 
       # count one osm element
-      assert_select "osm[version='#{API_VERSION}'][generator='OpenStreetMap server']", 1
+      assert_select "osm[version='#{Settings.api_version}'][generator='OpenStreetMap server']", 1
 
       # we should have only the expected number of relations
       assert_select "osm>relation", expected_relations.size
 
       # we should have only the expected number of relations
       assert_select "osm>relation", expected_relations.size