Commit 9afec2a3 authored by Eloy Duran's avatar Eloy Duran

Make specs green.

parent 39e0a526
...@@ -46,7 +46,9 @@ module Pod ...@@ -46,7 +46,9 @@ module Pod
# Returns the spec at the pat returned from `project_podfile`. # Returns the spec at the pat returned from `project_podfile`.
def rootspec def rootspec
@rootspec ||= Podfile.from_file(project_podfile) @rootspec ||= begin
Podfile.from_file(project_podfile) if project_podfile.exist?
end
end end
def ios? def ios?
......
...@@ -32,13 +32,6 @@ describe "Pod::Config" do ...@@ -32,13 +32,6 @@ describe "Pod::Config" do
end end
end end
it "returns the path to an existing podspec file if a Podfile doesn't exist" do
(temporary_directory + 'Bananas.podspec').open('w') { |f| f << '# Yo' }
Dir.chdir(temporary_directory) do
config.project_podfile.should == Pathname.pwd + 'Bananas.podspec'
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