Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-07-27 09:05:22 +0300
committerStan Hu <stanhu@gmail.com>2018-07-27 09:05:22 +0300
commit3f715bb438f81d8847e48d4fa76d1827b2df88eb (patch)
tree9cacc78580d951fd7378220c06e3766ae9b37e55 /spec/controllers
parent079b490ad2106e83bf315c7f3e9ac5e1d60c0d0c (diff)
Consolidate server errors and add specs
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/import/bitbucket_server_controller_spec.rb2
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