18948: Update test.
[arvados.git] / services / api / test / unit / authorized_key_test.rb
index 5a661785bd7bef903747b5890bb135b8bacaebf1..14bca29e0aab7682767cd1e0219874bc59ed691e 100644 (file)
@@ -1,3 +1,7 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 require 'test_helper'
 
 class AuthorizedKeyTest < ActiveSupport::TestCase
@@ -25,7 +29,7 @@ class AuthorizedKeyTest < ActiveSupport::TestCase
       ak2 = AuthorizedKey.new(name: "bar", public_key: TEST_KEY, authorized_user_uuid: u2.uuid)
       refute ak2.valid?
       refute ak2.save
-      assert_match /already exists/, ak2.errors.full_messages.to_s
+      assert_match(/already exists/, ak2.errors.full_messages.to_s)
     end
   end