summaryrefslogtreecommitdiff
path: root/spec/controllers/import/github_controller_spec.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-10-20 10:51:49 +0000
committerDouwe Maan <douwe@gitlab.com>2015-10-20 10:51:49 +0000
commit97eafd4b3dbc186fc3d633c20a7e364ebf31849d (patch)
tree8eeda2b927fa13fd2c8052dfb13f0c0caf9c4164 /spec/controllers/import/github_controller_spec.rb
parent1f1b3a094206b199393d8de537f4ec0843f2afe2 (diff)
parent4ad64ab3f4705b7fa88f855d67e0d2d268c5e395 (diff)
downloadgitlab-ce-97eafd4b3dbc186fc3d633c20a7e364ebf31849d.tar.gz
Merge branch 'remove-duplicate-repos-in-github-import' into 'master'
Fix duplicate repositories in GitHub import page By default, all the current user's repositories are accessible via the /users endpoint. There's no need to traverse all the organization repositories as well. See: * http://www.rubydoc.info/github/pengwynn/octokit/Octokit/Client/Repositories#repositories-instance_method * https://developer.github.com/v3/repos/#list-your-repositories Closes #2523 See merge request !1644
Diffstat (limited to 'spec/controllers/import/github_controller_spec.rb')
-rw-r--r--spec/controllers/import/github_controller_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/controllers/import/github_controller_spec.rb b/spec/controllers/import/github_controller_spec.rb
index 766be578f7f..bbf8adef534 100644
--- a/spec/controllers/import/github_controller_spec.rb
+++ b/spec/controllers/import/github_controller_spec.rb
@@ -41,7 +41,7 @@ describe Import::GithubController do
it "assigns variables" do
@project = create(:project, import_type: 'github', creator_id: user.id)
- stub_client(repos: [@repo], orgs: [@org], org_repos: [@org_repo])
+ stub_client(repos: [@repo, @org_repo], orgs: [@org], org_repos: [@org_repo])
get :status