diff options
author | Stan Hu <stanhu@gmail.com> | 2018-07-26 23:05:22 -0700 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2018-07-26 23:05:22 -0700 |
commit | 3f715bb438f81d8847e48d4fa76d1827b2df88eb (patch) | |
tree | 9cacc78580d951fd7378220c06e3766ae9b37e55 /spec/controllers/import | |
parent | 079b490ad2106e83bf315c7f3e9ac5e1d60c0d0c (diff) | |
download | gitlab-ce-3f715bb438f81d8847e48d4fa76d1827b2df88eb.tar.gz |
Consolidate server errors and add specs
Diffstat (limited to 'spec/controllers/import')
-rw-r--r-- | spec/controllers/import/bitbucket_server_controller_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/import/bitbucket_server_controller_spec.rb b/spec/controllers/import/bitbucket_server_controller_spec.rb index 8d0034b2cc2..5024ef71771 100644 --- a/spec/controllers/import/bitbucket_server_controller_spec.rb +++ b/spec/controllers/import/bitbucket_server_controller_spec.rb @@ -78,7 +78,7 @@ describe Import::BitbucketServerController do end it "returns an error when the server can't be contacted" do - expect(client).to receive(:repo).with(project_key, repo_slug).and_raise(Errno::ECONNREFUSED) + expect(client).to receive(:repo).with(project_key, repo_slug).and_raise(BitbucketServer::Client::ServerError) post :create, project: project_key, repository: repo_slug, format: :json |