gitlab-org--gitlab-foss/spec/lib/gitlab/backend/shell_spec.rb

19 lines
536 B
Ruby
Raw Normal View History

require 'spec_helper'
describe Gitlab::Shell do
2013-01-28 15:53:01 +00:00
let(:project) { double('Project', id: 7, path: 'diaspora') }
2013-02-11 18:28:27 +00:00
let(:gitlab_shell) { Gitlab::Shell.new }
before do
2013-01-28 15:53:01 +00:00
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 { should respond_to :fork_repository }
2013-02-11 18:28:27 +00:00
it { gitlab_shell.url_to_repo('diaspora').should == Gitlab.config.gitlab_shell.ssh_path_prefix + "diaspora.git" }
end