summaryrefslogtreecommitdiff
path: root/spec/models
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-11 20:28:27 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-11 20:28:27 +0200
commitab0cfc00367a60cfe9cc488521bf55882d54769a (patch)
tree906d680016c146e256925c901314a4bb449057d2 /spec/models
parent2a1fac9e4f9687d4b55f13527aed5dfb848e3a4d (diff)
downloadgitlab-ce-ab0cfc00367a60cfe9cc488521bf55882d54769a.tar.gz
fixing tests after refactoring
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/project_spec.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb
index 3dccb482375..4b620a2fa3e 100644
--- a/spec/models/project_spec.rb
+++ b/spec/models/project_spec.rb
@@ -66,11 +66,6 @@ describe Project do
project.should_not be_valid
project.errors[:base].first.should match(/Your own projects limit is 1/)
end
-
- it "should not allow 'gitolite-admin' as repo name" do
- should allow_value("blah").for(:path)
- should_not allow_value("gitolite-admin").for(:path)
- end
end
describe "Respond to" do
@@ -91,7 +86,7 @@ describe Project do
it "should return valid url to repo" do
project = Project.new(path: "somewhere")
- project.url_to_repo.should == Gitlab.config.gitolite.ssh_path_prefix + "somewhere.git"
+ project.url_to_repo.should == Gitlab.config.gitlab_shell.ssh_path_prefix + "somewhere.git"
end
it "returns the full web URL for this repo" do