]> git.openstreetmap.org Git - rails.git/blobdiff - test/functional/node_controller_test.rb
Add some tests for updating users
[rails.git] / test / functional / node_controller_test.rb
index 3fc2d83f659a3fa946c649563a188a9aec966168..fdefd0896065f2dc521f31f4f41bce72ff9e77a0 100644 (file)
@@ -101,7 +101,7 @@ class NodeControllerTest < ActionController::TestCase
     content("<osm><node lat='#{lat}' lon='#{lon}' changeset='#{changeset.id}'><tag k='foo' v='#{'x'*256}'/></node></osm>")
     put :create
     assert_response :bad_request, "node upload did not return bad_request status"
-    assert_equal ["NodeTag ", " v: is too long (maximum is 255 characters) (\"#{'x'*256}\")"], @response.body.split(/[0-9]+:/)
+    assert_equal ["NodeTag ", " v: is too long (maximum is 255 characters) (\"#{'x'*256}\")"], @response.body.split(/[0-9]+,foo:/)
 
   end