projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
15306: Adds integration tests with query string & form encoded params.
[arvados.git]
/
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 5a661785bd7bef903747b5890bb135b8bacaebf1..14bca29e0aab7682767cd1e0219874bc59ed691e 100644
(file)
--- 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
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
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
end
end