Fix specs.

This commit is contained in:
Douwe Maan 2015-02-18 08:21:30 +01:00
parent 448817c4de
commit f2b37de54b
5 changed files with 5 additions and 2 deletions

View file

@ -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)

View file

@ -3,4 +3,4 @@ module Gitlab
mattr_accessor :public_key
@public_key = nil
end
end
end

View file

@ -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

View file

@ -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

View file

@ -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