diff options
author | Robert Speicher <rspeicher@gmail.com> | 2012-09-26 22:52:01 +0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2012-09-27 00:32:26 +0400 |
commit | afc4a75499b6678a643e6b62f703f8e7e1eb0f0a (patch) | |
tree | 19855be537491fb2e1f79907e034f8f199915f46 /spec/models | |
parent | 82c3f6260366147803d5f63d575231f77c7e73ce (diff) |
Use Rails.root.join where appropriate
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/project_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index c313b58ecd6..bb975a93dfd 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -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 |