X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6870192ada3c34ffe5f0dc4c33ce2ad55bc2d263..060d38d627bd1e51dd2b3c6e7de9af6aa7d7b6f3:/services/api/test/unit/authorized_key_test.rb diff --git a/services/api/test/unit/authorized_key_test.rb b/services/api/test/unit/authorized_key_test.rb index 5a661785bd..14bca29e0a 100644 --- a/services/api/test/unit/authorized_key_test.rb +++ b/services/api/test/unit/authorized_key_test.rb @@ -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