Commit 827cf407 authored by Eloy Durán's avatar Eloy Durán

Don’t break when specifying doc options, but not appledoc ones. Fixes #906.

parent a5b8aca1
...@@ -145,7 +145,7 @@ module Pod ...@@ -145,7 +145,7 @@ module Pod
# #
def spec_appledoc_options def spec_appledoc_options
return [] unless specification.documentation return [] unless specification.documentation
specification.documentation[:appledoc] specification.documentation[:appledoc] || []
end end
# @return [Array<String>] The list of the appledoc options followed by # @return [Array<String>] The list of the appledoc options followed by
......
...@@ -14,6 +14,11 @@ module Pod ...@@ -14,6 +14,11 @@ module Pod
@doc_installer.public_headers.sort.should == %w[ Classes/Banana.h ].sort @doc_installer.public_headers.sort.should == %w[ Classes/Banana.h ].sort
end end
it 'returns an empty array in case there are no appledoc options specified' do
@doc_installer.specification.stubs(:documentation).returns({})
@doc_installer.spec_appledoc_options.should == []
end
it 'returns the Pod documentation options' do it 'returns the Pod documentation options' do
expected = [ expected = [
'--project-name', 'BananaLib 1.0', '--project-name', 'BananaLib 1.0',
......
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