Commit 005e323e authored by Fabio Pelosin's avatar Fabio Pelosin

[Config] Support extension for Podfile.

parent 818f3901
...@@ -38,7 +38,13 @@ module Pod ...@@ -38,7 +38,13 @@ module Pod
end end
def project_podfile def project_podfile
@project_podfile ||= project_root + 'Podfile' unless @project_podfile
@project_podfile = project_root + 'Podfile.cocoapods'
unless @project_podfile.exist?
@project_podfile = project_root + 'Podfile'
end
end
@project_podfile
end end
def project_lockfile def project_lockfile
......
...@@ -29,6 +29,13 @@ describe "Pod::Config" do ...@@ -29,6 +29,13 @@ describe "Pod::Config" do
end end
end end
it "returns the path to the project Podfile if specified with the extension" do
(temporary_directory + 'Podfile.cocoapods').open('w') { |f| f << '# Yo' }
Dir.chdir(temporary_directory) do
config.project_podfile.should == Pathname.pwd + 'Podfile.cocoapods'
end
end
it "returns the path to the Pods directory that holds the dependencies" do it "returns the path to the Pods directory that holds the dependencies" do
config.project_pods_root.should == Pathname.pwd + 'Pods' config.project_pods_root.should == Pathname.pwd + 'Pods'
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment