X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/36a1f3810931e6c20f8c6835d53d2dd813b3d575..93a57af6aacdbc48ec5e24b3770fe6c1537f656a:/test/controllers/api/traces_controller_test.rb?ds=sidebyside diff --git a/test/controllers/api/traces_controller_test.rb b/test/controllers/api/traces_controller_test.rb index ea8476453..c2ddb6031 100644 --- a/test/controllers/api/traces_controller_test.rb +++ b/test/controllers/api/traces_controller_test.rb @@ -307,7 +307,7 @@ module Api updated = Trace.find(trace.id) # Ensure there's only one tag in the database after updating - assert_equal Tracetag.count, 1 + assert_equal(1, Tracetag.count) # The new tag object might have a different id, so check the string representation assert_equal trace.tagstring, updated.tagstring end