Sha256: 0b99335112d0a6dddd64c5c3af0fd65c36fc32ffc2720c36979232d3cdf6f36d

Contents?: true

Size: 409 Bytes

Versions: 136

Compression:

Stored size: 409 Bytes

Contents

require 'spec_helper'
require 'puppet_spec/files'
require 'puppet/application/doc'

describe Puppet::Application::Doc do
  include PuppetSpec::Files

  it "should respect the -o option" do
    puppetdoc = Puppet::Application[:doc]
    allow(puppetdoc.command_line).to receive(:args).and_return(['foo', '-o', 'bar'])
    puppetdoc.parse_options
    expect(puppetdoc.options[:outputdir]).to eq('bar')
  end
end

Version data entries

136 entries across 136 versions & 1 rubygems

Version Path
puppet-5.5.22 spec/integration/application/doc_spec.rb
puppet-5.5.22-x86-mingw32 spec/integration/application/doc_spec.rb
puppet-5.5.22-x64-mingw32 spec/integration/application/doc_spec.rb
puppet-5.5.22-universal-darwin spec/integration/application/doc_spec.rb
puppet-6.17.0 spec/integration/application/doc_spec.rb
puppet-6.17.0-x86-mingw32 spec/integration/application/doc_spec.rb
puppet-6.17.0-x64-mingw32 spec/integration/application/doc_spec.rb
puppet-6.17.0-universal-darwin spec/integration/application/doc_spec.rb
puppet-5.5.21 spec/integration/application/doc_spec.rb
puppet-5.5.21-x86-mingw32 spec/integration/application/doc_spec.rb
puppet-5.5.21-x64-mingw32 spec/integration/application/doc_spec.rb
puppet-5.5.21-universal-darwin spec/integration/application/doc_spec.rb
puppet-6.16.0 spec/integration/application/doc_spec.rb
puppet-6.16.0-x86-mingw32 spec/integration/application/doc_spec.rb
puppet-6.16.0-x64-mingw32 spec/integration/application/doc_spec.rb
puppet-6.16.0-universal-darwin spec/integration/application/doc_spec.rb
puppet-6.15.0 spec/integration/application/doc_spec.rb
puppet-6.15.0-x86-mingw32 spec/integration/application/doc_spec.rb
puppet-6.15.0-x64-mingw32 spec/integration/application/doc_spec.rb
puppet-6.15.0-universal-darwin spec/integration/application/doc_spec.rb