remove gitolite stub
This commit is contained in:
parent
935b6ae653
commit
c75fc9c7a6
3 changed files with 21 additions and 24 deletions
|
@ -1,5 +1,6 @@
|
|||
require "repository"
|
||||
require "project"
|
||||
require "shell"
|
||||
|
||||
# Stubs out all Git repository access done by models so that specs can run
|
||||
# against fake repositories without Grit complaining that they don't exist.
|
||||
|
@ -36,3 +37,23 @@ class GitLabTestRepo < Repository
|
|||
@repo ||= Grit::Repo.new(Rails.root.join('tmp', 'repositories', 'gitlabhq'))
|
||||
end
|
||||
end
|
||||
|
||||
module Gitlab
|
||||
class Shell
|
||||
def add_repository name
|
||||
true
|
||||
end
|
||||
|
||||
def remove_repository name
|
||||
true
|
||||
end
|
||||
|
||||
def add_key name, key
|
||||
true
|
||||
end
|
||||
|
||||
def remove_key key
|
||||
true
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue