Commit 4b5e91ed authored by Fabio Pelosin's avatar Fabio Pelosin

Merge pull request #528 from CocoaPods/podfile_extension

[Config] Support extension for Podfile.
parents a478de62 005e323e
......@@ -39,7 +39,13 @@ module Pod
end
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
def project_lockfile
......
......@@ -29,6 +29,13 @@ describe "Pod::Config" do
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
config.project_pods_root.should == Pathname.pwd + 'Pods'
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