fixing tests after refactoring
This commit is contained in:
parent
2a1fac9e4f
commit
ab0cfc0036
5 changed files with 7 additions and 12 deletions
|
@ -2,7 +2,7 @@ require 'spec_helper'
|
|||
|
||||
describe Gitlab::Shell do
|
||||
let(:project) { double('Project', id: 7, path: 'diaspora') }
|
||||
let(:gitolite) { Gitlab::Shell.new }
|
||||
let(:gitlab_shell) { Gitlab::Shell.new }
|
||||
|
||||
before do
|
||||
Project.stub(find: project)
|
||||
|
@ -13,5 +13,5 @@ describe Gitlab::Shell do
|
|||
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" }
|
||||
it { gitlab_shell.url_to_repo('diaspora').should == Gitlab.config.gitlab_shell.ssh_path_prefix + "diaspora.git" }
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue