Use Rails.root.join where appropriate
This commit is contained in:
parent
82c3f62603
commit
afc4a75499
11 changed files with 17 additions and 17 deletions
|
@ -125,7 +125,7 @@ describe Project do
|
|||
|
||||
it "should return path to repo" do
|
||||
project = Project.new(path: "somewhere")
|
||||
project.path_to_repo.should == File.join(Rails.root, "tmp", "repositories", "somewhere")
|
||||
project.path_to_repo.should == Rails.root.join("tmp", "repositories", "somewhere")
|
||||
end
|
||||
|
||||
it "returns the full web URL for this repo" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue