Fix specs.
This commit is contained in:
parent
448817c4de
commit
f2b37de54b
5 changed files with 5 additions and 2 deletions
|
@ -1,2 +1,2 @@
|
|||
path = File.expand_path("~/.ssh/id_rsa.pub")
|
||||
Gitlab::BitbucketImport.public_key = File.read(path) if File.exist?(path)
|
||||
Gitlab::BitbucketImport.public_key = File.read(path) if File.exist?(path)
|
||||
|
|
|
@ -3,4 +3,4 @@ module Gitlab
|
|||
mattr_accessor :public_key
|
||||
@public_key = nil
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -5,6 +5,7 @@ describe Import::BitbucketController do
|
|||
|
||||
before do
|
||||
sign_in(user)
|
||||
controller.stub(:bitbucket_import_enabled?).and_return(true)
|
||||
end
|
||||
|
||||
describe "GET callback" do
|
||||
|
|
|
@ -5,6 +5,7 @@ describe Import::GithubController do
|
|||
|
||||
before do
|
||||
sign_in(user)
|
||||
controller.stub(:github_import_enabled?).and_return(true)
|
||||
end
|
||||
|
||||
describe "GET callback" do
|
||||
|
|
|
@ -5,6 +5,7 @@ describe Import::GitlabController do
|
|||
|
||||
before do
|
||||
sign_in(user)
|
||||
controller.stub(:gitlab_import_enabled?).and_return(true)
|
||||
end
|
||||
|
||||
describe "GET callback" do
|
||||
|
|
Loading…
Reference in a new issue