Commit 28b1e0f9 authored by Ben Scheirman's avatar Ben Scheirman Committed by Eloy Duran

Test informative messages for missing or invalid xcodeproj

parent 34537051
......@@ -23,6 +23,14 @@ describe "Pod::Command::Install" do
it "raises an informative error" do
should.raise(Pod::Informative) { @installer.run }
end
it "should include an informative message" do
begin
@installer.run
rescue Pod::Informative => err
err.message.should.match /xcodeproj 'path\/to\/project\.xcodeproj/
end
end
end
describe "When the Podfile specifies xcodeproj to an invalid path" do
......@@ -35,6 +43,14 @@ describe "Pod::Command::Install" do
should.raise(Pod::Informative) {@installer.run}
end
it "should include an informative message" do
begin
@installer.run
rescue Pod::Informative => err
err.message.should.match /The specified project `nonexistent\/project\.xcodeproj'/
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