tests seed

This commit is contained in:
gitlabhq 2011-10-09 22:55:06 +03:00
parent 035196e7a8
commit d7ea9052f1
3 changed files with 10 additions and 7 deletions

View file

@ -38,7 +38,7 @@ describe Project do
it "should return path to repo" do
project = Project.new(:path => "somewhere")
project.path_to_repo.should == "/tmp/somewhere"
project.path_to_repo.should == File.join(Rails.root, "tmp", "tests", "somewhere")
end
describe :valid_repo? do

View file

@ -10,7 +10,7 @@ class Project
end
def path_to_repo
"/tmp/" + path
File.join(Rails.root, "tmp", "tests", path)
end
end