diff options
author | Valery Sizov <valery@gitlab.com> | 2015-02-03 10:34:38 -0800 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2015-02-05 12:50:34 -0800 |
commit | 2d5765bd2ca9b7ce3e4251cb082cbc8c52e51996 (patch) | |
tree | a37067591cc78e55f2f75661824ae52486d2a8bd /spec/controllers | |
parent | 93585661b1699384060616f0a19433ededadf3fe (diff) | |
download | gitlab-ce-2d5765bd2ca9b7ce3e4251cb082cbc8c52e51996.tar.gz |
gitlab.com importer: fix specs after refactoring
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/import/github_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/import/github_controller_spec.rb b/spec/controllers/import/github_controller_spec.rb index ef93ff6f92f..01063567733 100644 --- a/spec/controllers/import/github_controller_spec.rb +++ b/spec/controllers/import/github_controller_spec.rb @@ -10,7 +10,7 @@ describe Import::GithubController do describe "GET callback" do it "updates access token" do token = "asdasd12345" - Gitlab::Github::Client.any_instance.stub_chain(:client, :auth_code, :get_token, :token).and_return(token) + Gitlab::GithubImport::Client.any_instance.stub_chain(:client, :auth_code, :get_token, :token).and_return(token) Gitlab.config.omniauth.providers << OpenStruct.new(app_id: "asd123", app_secret: "asd123", name: "github") get :callback @@ -55,7 +55,7 @@ describe Import::GithubController do it "takes already existing namespace" do namespace = create(:namespace, name: "john", owner: user) - Gitlab::Github::ProjectCreator.should_receive(:new).with(@repo, namespace, user). + Gitlab::GithubImport::ProjectCreator.should_receive(:new).with(@repo, namespace, user). and_return(double(execute: true)) controller.stub_chain(:octo_client, :repo).and_return(@repo) |