Welcome to mirror list, hosted at ThFree Co, Russian Federation.

shell_spec.rb « backend « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f00ec0fa401504350dc1a0e155aeabf19e6230c5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require 'spec_helper'

describe Gitlab::Shell do
  let(:project) { double('Project', id: 7, path: 'diaspora') }
  let(:gitlab_shell) { 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 { should respond_to :fork_repository }

  it { gitlab_shell.url_to_repo('diaspora').should == Gitlab.config.gitlab_shell.ssh_path_prefix + "diaspora.git" }
end