X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0eb72b526bf8bbb011551ecf019f604e17a534f1..ee9d1e39b5d469a827be5a719c9c0860914ab2a8:/services/api/test/unit/repository_test.rb?ds=sidebyside diff --git a/services/api/test/unit/repository_test.rb b/services/api/test/unit/repository_test.rb index fa4c37f74f..674a34ffd8 100644 --- a/services/api/test/unit/repository_test.rb +++ b/services/api/test/unit/repository_test.rb @@ -23,15 +23,15 @@ class RepositoryTest < ActiveSupport::TestCase def default_git_url(repo_name, user_name=nil) if user_name "git@git.%s.arvadosapi.com:%s/%s.git" % - [Rails.configuration.uuid_prefix, user_name, repo_name] + [Rails.configuration.ClusterID, user_name, repo_name] else "git@git.%s.arvadosapi.com:%s.git" % - [Rails.configuration.uuid_prefix, repo_name] + [Rails.configuration.ClusterID, repo_name] end end def assert_server_path(path_tail, repo_sym) - assert_equal(File.join(Rails.configuration.git_repositories_dir, path_tail), + assert_equal(File.join(Rails.configuration.Git.Repositories, path_tail), repositories(repo_sym).server_path) end @@ -263,7 +263,7 @@ class RepositoryTest < ActiveSupport::TestCase test "non-admin can rename own repo" do act_as_user users(:active) do - assert repositories(:foo).update_attributes(name: 'active/foo12345') + assert repositories(:foo).update(name: 'active/foo12345') end end