Commit 135ce81b authored by Eloy Durán's avatar Eloy Durán

Raise an exception if a downloader doesn't support :head.

parent 6aa7df78
......@@ -74,6 +74,7 @@ module Pod
if downloader.respond_to?(:download_head)
downloader.download_head
else
raise Informative, "The downloader of class `#{downloader.class.name}' does not support the `:head' option."
end
else
downloader.download
......
......@@ -261,7 +261,7 @@ module Pod
end
end
describe "for Http" do
describe "for HTTP" do
extend SpecHelper::TemporaryDirectory
it "download file and unzip it" do
......
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