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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-10 17:04:06 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-09-10 17:04:06 +0300
commit9d93c567b39bc4f3e6737f1db5b1c6c2b1d59654 (patch)
tree83b5425885bd4a0785f109b631c5bdd850333031 /spec/support/stub_gitlab_calls.rb
parentbf8013f1a4c5d6274d0b03f55098e3b4d1da3f4d (diff)
Fix part of CI api tests
Diffstat (limited to 'spec/support/stub_gitlab_calls.rb')
-rw-r--r--spec/support/stub_gitlab_calls.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/support/stub_gitlab_calls.rb b/spec/support/stub_gitlab_calls.rb
index 931ef963c0f..51425e3095c 100644
--- a/spec/support/stub_gitlab_calls.rb
+++ b/spec/support/stub_gitlab_calls.rb
@@ -16,7 +16,7 @@ module StubGitlabCalls
private
def gitlab_url
- GitlabCi.config.gitlab_server.url
+ Gitlab.config.gitlab.url
end
def stub_session
@@ -52,7 +52,7 @@ module StubGitlabCalls
def stub_projects
f = File.read(Rails.root.join('spec/support/gitlab_stubs/projects.json'))
-
+
stub_request(:get, "#{gitlab_url}api/v3/projects.json?archived=false&ci_enabled_first=true&private_token=Wvjy2Krpb7y8xi93owUz").
with(:headers => {'Content-Type'=>'application/json'}).
to_return(:status => 200, :body => f, :headers => {'Content-Type'=>'application/json'})