Commit 33241a36 authored by Eloy Duran's avatar Eloy Duran

Don't generate docs during any of the unrelated specs in the integration spec.

parent 3e7fc5f1
......@@ -92,8 +92,6 @@ module Pod
arguments += options
arguments += ['--print-settings'] if config.verbose?
arguments += files.map(&:to_s)
#p arguments
puts "appledoc #{arguments.join("' '")}"
Open3.popen3('appledoc', *arguments) do |i, o, e|
if config.verbose?
puts o.read.chomp
......
......@@ -31,10 +31,7 @@ else
describe "A full (integration spec) installation for platform `#{platform}'" do
extend SpecHelper::TemporaryDirectory
before do
fixture('spec-repos/master') # ensure the archive is unpacked
@config_before = config
def create_config!
Pod::Config.instance = nil
config.silent = true
config.repos_dir = fixture('spec-repos')
......@@ -42,6 +39,14 @@ else
config.doc_install = false
end
before do
fixture('spec-repos/master') # ensure the archive is unpacked
@config_before = config
create_config!
config.doc = false
end
after do
Pod::Config.instance = @config_before
end
......@@ -131,6 +136,8 @@ else
if Pod::DocsGenerator.appledoc_installed?
it "generates documentation of all pods by default" do
create_config!
podfile = Pod::Podfile.new do
self.platform :ios
dependency 'JSONKit', '1.4'
......@@ -140,9 +147,10 @@ else
installer = SpecHelper::Installer.new(podfile)
installer.install!
File.directory?(config.project_pods_root + 'Documentation/JSONKit/html/')
doc = (config.project_pods_root + 'Documentation/JSONKit/html/index.html').read
doc.should.include?('<title>JSONKit (1.4) Reference</title>')
doc = (config.project_pods_root + 'Documentation/SSToolkit/html/index.html').read
doc.should.include?('SSToolkit')
doc.should.include?('<title>SSToolkit (0.1.2) Reference</title>')
end
else
puts "[!] Skipping documentation generation specs, because appledoc can't be found."
......
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