2012-09-07 07:16:29 +02:00
|
|
|
require 'spec_helper'
|
|
|
|
|
2013-02-05 11:47:50 +01:00
|
|
|
describe Gitlab::Shell do
|
2013-01-28 16:53:01 +01:00
|
|
|
let(:project) { double('Project', id: 7, path: 'diaspora') }
|
2013-02-11 19:28:27 +01:00
|
|
|
let(:gitlab_shell) { Gitlab::Shell.new }
|
2012-09-07 07:16:29 +02:00
|
|
|
|
|
|
|
before do
|
2013-01-28 16:53:01 +01:00
|
|
|
Project.stub(find: project)
|
2012-09-07 07:16:29 +02:00
|
|
|
end
|
|
|
|
|
2013-02-05 11:47:50 +01:00
|
|
|
it { should respond_to :add_key }
|
2012-09-07 07:16:29 +02:00
|
|
|
it { should respond_to :remove_key }
|
2013-02-05 09:15:49 +01:00
|
|
|
it { should respond_to :add_repository }
|
2012-09-07 07:16:29 +02:00
|
|
|
it { should respond_to :remove_repository }
|
|
|
|
|
2013-02-11 19:28:27 +01:00
|
|
|
it { gitlab_shell.url_to_repo('diaspora').should == Gitlab.config.gitlab_shell.ssh_path_prefix + "diaspora.git" }
|
2012-09-07 07:16:29 +02:00
|
|
|
end
|