Commit 34537051 authored by Ben Scheirman's avatar Ben Scheirman Committed by Eloy Duran

Raise an informative error when Podfile specifies xcodeproj to an invalid path

parent cd931998
...@@ -18,11 +18,23 @@ describe "Pod::Command::Install" do ...@@ -18,11 +18,23 @@ describe "Pod::Command::Install" do
describe "When the Podfile does not specify the xcodeproject" do describe "When the Podfile does not specify the xcodeproject" do
before do before do
config.stubs(:rootspec).returns(Pod::Podfile.new { platform :ios; dependency 'AFNetworking'}) config.stubs(:rootspec).returns(Pod::Podfile.new { platform :ios; dependency 'AFNetworking'})
@installer = Pod::Command::Install.new(Pod::Command::ARGV.new)
end end
it "raises an informative error if the xcodproj is not specified in the podfile" do it "raises an informative error" do
installer = Pod::Command::Install.new(Pod::Command::ARGV.new) should.raise(Pod::Informative) { @installer.run }
should.raise(Pod::Informative) { installer.run }
end end
end end
describe "When the Podfile specifies xcodeproj to an invalid path" do
before do
config.stubs(:rootspec).returns(Pod::Podfile.new { platform :ios; xcodeproj 'nonexistent/project.xcodeproj'; dependency 'AFNetworking'})
@installer = Pod::Command::Install.new(Pod::Command::ARGV.new)
end
it "raises an informative error" do
should.raise(Pod::Informative) {@installer.run}
end
end
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