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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/spec/lib
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-11 22:28:27 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-11 22:28:27 +0400
commitab0cfc00367a60cfe9cc488521bf55882d54769a (patch)
tree906d680016c146e256925c901314a4bb449057d2 /spec/lib
parent2a1fac9e4f9687d4b55f13527aed5dfb848e3a4d (diff)
fixing tests after refactoring
Diffstat (limited to 'spec/lib')
-rw-r--r--spec/lib/project_mover_spec.rb2
-rw-r--r--spec/lib/shell_spec.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/project_mover_spec.rb b/spec/lib/project_mover_spec.rb
index 28323b24ef6..9202befdcb2 100644
--- a/spec/lib/project_mover_spec.rb
+++ b/spec/lib/project_mover_spec.rb
@@ -7,7 +7,7 @@ describe Gitlab::ProjectMover do
FileUtils.rm_rf base_path if File.exists? base_path
FileUtils.mkdir_p base_path
- Gitlab.config.gitolite.stub(repos_path: base_path)
+ Gitlab.config.gitlab_shell.stub(repos_path: base_path)
@project = create(:project)
end
diff --git a/spec/lib/shell_spec.rb b/spec/lib/shell_spec.rb
index 1c546e59235..3c04f4bbeb6 100644
--- a/spec/lib/shell_spec.rb
+++ b/spec/lib/shell_spec.rb
@@ -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