Skip to content
This repository was archived by the owner on May 12, 2018. It is now read-only.

Commit 1db1755

Browse files
committed
Fix tests
Signed-off-by: Dmitriy Zaporozhets <[email protected]>
1 parent e0f4253 commit 1db1755

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/support/stub_gitlab_calls.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ def stub_project_8
4444

4545
def stub_projects
4646
f = File.read(Rails.root.join('spec/support/gitlab_stubs/projects.json'))
47-
stub_request(:get, "#{gitlab_url}api/v3/projects.json?private_token=Wvjy2Krpb7y8xi93owUz").
47+
stub_request(:get, "#{gitlab_url}api/v3/projects.json?archived=false&private_token=Wvjy2Krpb7y8xi93owUz").
4848
with(:headers => {'Content-Type'=>'application/json'}).
4949
to_return(:status => 200, :body => f, :headers => {'Content-Type'=>'application/json'})
5050
end
5151

5252
def stub_projects_owned
53-
stub_request(:get, "#{gitlab_url}api/v3/projects/owned.json?private_token=Wvjy2Krpb7y8xi93owUz").
53+
stub_request(:get, "#{gitlab_url}api/v3/projects/owned.json?archived=false&private_token=Wvjy2Krpb7y8xi93owUz").
5454
with(:headers => {'Content-Type'=>'application/json'}).
5555
to_return(:status => 200, :body => "", :headers => {})
5656
end

0 commit comments

Comments
 (0)