fixing tests after refactoring
This commit is contained in:
parent
2a1fac9e4f
commit
ab0cfc0036
5 changed files with 7 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue