Fixed: post-receive, project remove, tests
This commit is contained in:
parent
39e37677f2
commit
70e3bffd95
9 changed files with 43 additions and 47 deletions
17
spec/lib/shell_spec.rb
Normal file
17
spec/lib/shell_spec.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
require 'spec_helper'
|
||||
|
||||
describe Gitlab::Shell do
|
||||
let(:project) { double('Project', id: 7, path: 'diaspora') }
|
||||
let(:gitolite) { Gitlab::Shell.new }
|
||||
|
||||
before do
|
||||
Project.stub(find: project)
|
||||
end
|
||||
|
||||
it { should respond_to :add_key }
|
||||
it { should respond_to :remove_key }
|
||||
it { should respond_to :add_repository }
|
||||
it { should respond_to :remove_repository }
|
||||
|
||||
it { gitolite.url_to_repo('diaspora').should == Gitlab.config.gitolite.ssh_path_prefix + "diaspora.git" }
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue