Sha256: 8175a0b17da76d3413467f9da55e1149220520350fea15f4c4cf474d1425771b

Contents?: true

Size: 663 Bytes

Versions: 136

Compression:

Stored size: 663 Bytes

Contents

require 'spec_helper'
require 'puppet/face'

describe Puppet::Face[:man, '0.0.1'] do
  it 'should be deprecated' do
    expect(subject.deprecated?).to be_truthy
  end

  it 'has a man action' do
    expect(subject).to be_action(:man)
  end

  it 'has a default action of man' do
    expect(subject.get_action('man')).to be_default
  end

  it 'accepts a call with no arguments' do
    expect { subject.man() }.to have_printed(/USAGE: puppet man <action>/)
  end

  it 'raises an ArgumentError when given to many arguments' do
    allow(subject).to receive(:print_man_help)
    expect { subject.man(:man, 'cert', 'extra') }.to raise_error(ArgumentError)
  end
end

Version data entries

136 entries across 136 versions & 1 rubygems

Version Path
puppet-5.5.22 spec/unit/face/man_spec.rb
puppet-5.5.22-x86-mingw32 spec/unit/face/man_spec.rb
puppet-5.5.22-x64-mingw32 spec/unit/face/man_spec.rb
puppet-5.5.22-universal-darwin spec/unit/face/man_spec.rb
puppet-6.17.0 spec/unit/face/man_spec.rb
puppet-6.17.0-x86-mingw32 spec/unit/face/man_spec.rb
puppet-6.17.0-x64-mingw32 spec/unit/face/man_spec.rb
puppet-6.17.0-universal-darwin spec/unit/face/man_spec.rb
puppet-5.5.21 spec/unit/face/man_spec.rb
puppet-5.5.21-x86-mingw32 spec/unit/face/man_spec.rb
puppet-5.5.21-x64-mingw32 spec/unit/face/man_spec.rb
puppet-5.5.21-universal-darwin spec/unit/face/man_spec.rb
puppet-6.16.0 spec/unit/face/man_spec.rb
puppet-6.16.0-x86-mingw32 spec/unit/face/man_spec.rb
puppet-6.16.0-x64-mingw32 spec/unit/face/man_spec.rb
puppet-6.16.0-universal-darwin spec/unit/face/man_spec.rb
puppet-6.15.0 spec/unit/face/man_spec.rb
puppet-6.15.0-x86-mingw32 spec/unit/face/man_spec.rb
puppet-6.15.0-x64-mingw32 spec/unit/face/man_spec.rb
puppet-6.15.0-universal-darwin spec/unit/face/man_spec.rb