Commit bd957ba8 authored by Boris Bügling's avatar Boris Bügling

Test that helpful error message is actually displayed.

parent 15ea3f2f
...@@ -61,6 +61,15 @@ module Pod ...@@ -61,6 +61,15 @@ module Pod
} }
end end
it "fails when using :head for Http source" do
config.sandbox.store_head_pod('BananaLib')
@spec.source = { :http => 'http://dl.google.com/googleadmobadssdk/googleadmobsearchadssdkios.zip' }
@spec.source_files = 'GoogleAdMobSearchAdsSDK/*.h'
should.raise Informative do
@installer.install!
end.message.should.match /does not support the :head option, as it uses a Http source./
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