X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e9324ad6818cfec0578a8fa4dac0b2724a1445f1..c647aa3d4db16ec7fcef6822609c7ef85a17ee5a:/test/controllers/trace_controller_test.rb?ds=inline diff --git a/test/controllers/trace_controller_test.rb b/test/controllers/trace_controller_test.rb index b635f3e57..a23b59473 100644 --- a/test/controllers/trace_controller_test.rb +++ b/test/controllers/trace_controller_test.rb @@ -942,7 +942,10 @@ class TraceControllerTest < ActionController::TestCase assert_response :success updated = Trace.find(trace.id) - assert_equal trace.tags, updated.tags + # Ensure there's only one tag in the database after updating + assert_equal Tracetag.count, 1 + # The new tag object might have a different id, so check the string representation + assert_equal trace.tagstring, updated.tagstring end # Check deleting a trace through the api