diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-10 16:04:06 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-10 16:04:06 +0200 |
commit | 9d93c567b39bc4f3e6737f1db5b1c6c2b1d59654 (patch) | |
tree | 83b5425885bd4a0785f109b631c5bdd850333031 /spec/support | |
parent | bf8013f1a4c5d6274d0b03f55098e3b4d1da3f4d (diff) | |
download | gitlab-ce-9d93c567b39bc4f3e6737f1db5b1c6c2b1d59654.tar.gz |
Fix part of CI api tests
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/stub_gitlab_calls.rb | 4 |
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'}) |