BigW Consortium Gitlab

shell_spec.rb 606 Bytes
Newer Older
1 2
require 'spec_helper'

3
describe Gitlab::Shell do
Dmitriy Zaporozhets committed
4
  let(:project) { double('Project', id: 7, path: 'diaspora') }
5
  let(:gitlab_shell) { Gitlab::Shell.new }
6 7

  before do
8
    allow(Project).to receive(:find).and_return(project)
9 10
  end

11 12 13 14 15
  it { is_expected.to respond_to :add_key }
  it { is_expected.to respond_to :remove_key }
  it { is_expected.to respond_to :add_repository }
  it { is_expected.to respond_to :remove_repository }
  it { is_expected.to respond_to :fork_repository }
16

17
  it { expect(gitlab_shell.url_to_repo('diaspora')).to eq(Gitlab.config.gitlab_shell.ssh_path_prefix + "diaspora.git") }
18
end