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