X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/e8a76617eeec9429ddf7879048a310ba6e15e0d8..948c4e583b89e28730f8a0d2ae3f94e459351b30:/services/api/test/integration/user_sessions_test.rb diff --git a/services/api/test/integration/user_sessions_test.rb b/services/api/test/integration/user_sessions_test.rb index 7a9f9176d3..6f9cf7edcb 100644 --- a/services/api/test/integration/user_sessions_test.rb +++ b/services/api/test/integration/user_sessions_test.rb @@ -1,3 +1,7 @@ +# Copyright (C) The Arvados Authors. All rights reserved. +# +# SPDX-License-Identifier: AGPL-3.0 + require 'test_helper' class UserSessionsApiTest < ActionDispatch::IntegrationTest @@ -110,7 +114,7 @@ class UserSessionsApiTest < ActionDispatch::IntegrationTest (repos.collect(&:name) + vm_links.collect { |link| link.properties['username'] } ).each do |name| - r = name.match /^(.{#{prefix.length}})(\d+)$/ + r = name.match(/^(.{#{prefix.length}})(\d+)$/) assert_not_nil r, "#{name.inspect} does not match {prefix}\\d+" assert_equal(prefix, r[1], "#{name.inspect} was not {#{prefix.inspect} plus digits}")