Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-7158

pkg_spec.rb failure on individual execution starting c5d97e

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: PUP 4.3.0, PUP 4.8.2
    • Fix Version/s: PUP 4.10.0
    • Component/s: None
    • Labels:
    • Environment:

      OS X el capitan and ruby 2.3.1

      OS X 10.12.2 (Sierra) Ruby 2.2.3 / 2.1.6

    • Template:
    • Team:
      Agent
    • Story Points:
      1
    • Sprint:
      Agent 2017-03-22
    • Release Notes:
      Not Needed
    • QA Risk Assessment:
      No Action
    • QA Risk Assessment Reason:
      Spec failure

      Description

      Reproduced by Past Haus on master.

      Problem is not present when all specs are run or even if limited to all of spec/unit/provider/package/

      rspec ./spec/unit/provider/package/pkg_spec.rb
      Run options: exclude {:broken=>true, :benchmark=>true}
      .....................FFFFFFFFFFFFFFFFFFFFFFFFFFFF
       
      Failures:
       
        1) Puppet::Type::Package::ProviderPkg#methods :latest should work correctly for ensure latest on solaris 11(known UFOXI)
           Got 0 failures and 2 other errors:
       
           1.1) Failure/Error: $CHILD_STATUS.stubs(:exitstatus).returns 0
       
                RuntimeError:
                  can't modify frozen NilClass
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:16:in `mocha'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:102:in `block in stubs'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `call'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `each'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:97:in `stubs'
                # ./spec/unit/provider/package/pkg_spec.rb:114:in `block (4 levels) in <top (required)>'
       
           1.2) Failure/Error: @mocha ||= Mocha::Mockery.instance.mock_impersonating(self)
       
                RuntimeError:
                  can't modify frozen NilClass
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:16:in `mocha'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:29:in `mock'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:22:in `unstub'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        2) Puppet::Type::Package::ProviderPkg#methods :latest should work correctly for ensure latest on solaris 11 (IFO)
           Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
           NameError:
             method `exitstatus' not defined in NilClass
           # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
           # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
           # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
           # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
           # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
           # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
           # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        3) Puppet::Type::Package::ProviderPkg#methods :latest should work correctly for ensure latest on solaris 11(known IFO)
           Got 0 failures and 2 other errors:
       
           3.1) Failure/Error: $CHILD_STATUS.stubs(:exitstatus).returns 0
       
                RuntimeError:
                  can't modify frozen NilClass
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:16:in `mocha'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:102:in `block in stubs'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `call'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `each'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:97:in `stubs'
                # ./spec/unit/provider/package/pkg_spec.rb:127:in `block (4 levels) in <top (required)>'
       
           3.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                NameError:
                  method `exitstatus' not defined in NilClass
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        4) Puppet::Type::Package::ProviderPkg#methods :latest issues a warning when the certificate has expired
           Got 0 failures and 2 other errors:
       
           4.1) Failure/Error: Puppet::Util::Execution.expects(:execute).with(['/bin/pkg', 'update', '-n', 'dummy'], {:failonfail => false, :combine => true}).returns ''
       
                Mocha::ExpectationError:
                  not all expectations were satisfied
                  unsatisfied expectations:
                  - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '-n', 'dummy'], {:failonfail => false, :combine => true})
                  satisfied expectations:
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - expected exactly once, invoked once: Puppet.warning('pkg warning: Certificate '/var/pkg/ssl/871b4ed0ade09926e6adf95f86bf17535f987684' for publisher 'solarisstudio', needed to access 'https://pkg.oracle.com/solarisstudio/release/', will expire in '29' days.')
                # ./spec/unit/provider/package/pkg_spec.rb:126:in `block (4 levels) in <top (required)>'
       
           4.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                NameError:
                  method `exitstatus' not defined in NilClass
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        5) Puppet::Type::Package::ProviderPkg#methods :latest doesn't issue a warning when the certificate hasn't expired
           Got 0 failures and 2 other errors:
       
           5.1) Failure/Error: Puppet::Util::Execution.expects(:execute).with(['/bin/pkg', 'update', '-n', 'dummy'], {:failonfail => false, :combine => true}).returns ''
       
                Mocha::ExpectationError:
                  not all expectations were satisfied
                  unsatisfied expectations:
                  - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '-n', 'dummy'], {:failonfail => false, :combine => true})
                  satisfied expectations:
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - expected never, not yet invoked: Puppet.warning(/pkg warning/)
                  - expected exactly once, invoked once: Puppet.warning('pkg warning: Certificate '/var/pkg/ssl/871b4ed0ade09926e6adf95f86bf17535f987684' for publisher 'solarisstudio', needed to access 'https://pkg.oracle.com/solarisstudio/release/', will expire in '29' days.')
                # ./spec/unit/provider/package/pkg_spec.rb:126:in `block (4 levels) in <top (required)>'
       
           5.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                NameError:
                  method `exitstatus' not defined in NilClass
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        6) Puppet::Type::Package::ProviderPkg#methods :instances should correctly parse lines on solaris 11
           Got 0 failures and 2 other errors:
       
           6.1) Failure/Error: Puppet::Util::Execution.expects(:execute).with(['/bin/pkg', 'update', '-n', 'dummy'], {:failonfail => false, :combine => true}).returns ''
       
                Mocha::ExpectationError:
                  not all expectations were satisfied
                  unsatisfied expectations:
                  - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '-n', 'dummy'], {:failonfail => false, :combine => true})
                  satisfied expectations:
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - expected never, not yet invoked: Puppet::Type::Package::ProviderPkg.warning(any_parameters)
                  - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - expected never, not yet invoked: Puppet.warning(/pkg warning/)
                  - expected exactly once, invoked once: Puppet.warning('pkg warning: Certificate '/var/pkg/ssl/871b4ed0ade09926e6adf95f86bf17535f987684' for publisher 'solarisstudio', needed to access 'https://pkg.oracle.com/solarisstudio/release/', will expire in '29' days.')
                # ./spec/unit/provider/package/pkg_spec.rb:126:in `block (4 levels) in <top (required)>'
       
           6.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                NameError:
                  method `exitstatus' not defined in NilClass
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        7) Puppet::Type::Package::ProviderPkg#methods :instances should fail on incorrect lines
           Got 0 failures and 2 other errors:
       
           7.1) Failure/Error: Puppet::Util::Execution.expects(:execute).with(['/bin/pkg', 'update', '-n', 'dummy'], {:failonfail => false, :combine => true}).returns ''
       
                Mocha::ExpectationError:
                  not all expectations were satisfied
                  unsatisfied expectations:
                  - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '-n', 'dummy'], {:failonfail => false, :combine => true})
                  satisfied expectations:
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - expected never, not yet invoked: Puppet::Type::Package::ProviderPkg.warning(any_parameters)
                  - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - expected never, not yet invoked: Puppet.warning(/pkg warning/)
                  - expected exactly once, invoked once: Puppet.warning('pkg warning: Certificate '/var/pkg/ssl/871b4ed0ade09926e6adf95f86bf17535f987684' for publisher 'solarisstudio', needed to access 'https://pkg.oracle.com/solarisstudio/release/', will expire in '29' days.')
                # ./spec/unit/provider/package/pkg_spec.rb:126:in `block (4 levels) in <top (required)>'
       
           7.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                NameError:
                  method `exitstatus' not defined in NilClass
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        8) Puppet::Type::Package::ProviderPkg#methods :instances should fail on unknown package status
           Got 0 failures and 2 other errors:
       
           8.1) Failure/Error: Puppet::Util::Execution.expects(:execute).with(['/bin/pkg', 'update', '-n', 'dummy'], {:failonfail => false, :combine => true}).returns ''
       
                Mocha::ExpectationError:
                  not all expectations were satisfied
                  unsatisfied expectations:
                  - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '-n', 'dummy'], {:failonfail => false, :combine => true})
                  satisfied expectations:
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                  - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - expected never, not yet invoked: Puppet::Type::Package::ProviderPkg.warning(any_parameters)
                  - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                  - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                  - expected never, not yet invoked: Puppet.warning(/pkg warning/)
                  - expected exactly once, invoked once: Puppet.warning('pkg warning: Certificate '/var/pkg/ssl/871b4ed0ade09926e6adf95f86bf17535f987684' for publisher 'solarisstudio', needed to access 'https://pkg.oracle.com/solarisstudio/release/', will expire in '29' days.')
                # ./spec/unit/provider/package/pkg_spec.rb:126:in `block (4 levels) in <top (required)>'
       
           8.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                NameError:
                  method `exitstatus' not defined in NilClass
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        9) Puppet::Type::Package::ProviderPkg#methods :query should return fail when the packageline cannot be parsed
           Got 0 failures and 2 other errors:
       
           9.1) Failure/Error: $CHILD_STATUS.stubs(:exitstatus).returns 0
       
                RuntimeError:
                  can't modify frozen NilClass
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:16:in `mocha'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:102:in `block in stubs'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `call'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `each'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:97:in `stubs'
                # ./spec/unit/provider/package/pkg_spec.rb:218:in `block (4 levels) in <top (required)>'
       
           9.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                NameError:
                  method `exitstatus' not defined in NilClass
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        10) Puppet::Type::Package::ProviderPkg#methods :query on solaris 10 should find the package
            Got 0 failures and 2 other errors:
       
            10.1) Failure/Error: $CHILD_STATUS.stubs(:exitstatus).returns 0
       
                  RuntimeError:
                    can't modify frozen NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:16:in `mocha'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:102:in `block in stubs'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `call'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `each'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:97:in `stubs'
                  # ./spec/unit/provider/package/pkg_spec.rb:179:in `block (5 levels) in <top (required)>'
       
            10.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                  NameError:
                    method `exitstatus' not defined in NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        11) Puppet::Type::Package::ProviderPkg#methods :query on solaris 10 should return :absent when the package is not found
            Got 0 failures and 2 other errors:
       
            11.1) Failure/Error: $CHILD_STATUS.stubs(:exitstatus).returns 1
       
                  RuntimeError:
                    can't modify frozen NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:16:in `mocha'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:102:in `block in stubs'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `call'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `each'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:97:in `stubs'
                  # ./spec/unit/provider/package/pkg_spec.rb:191:in `block (5 levels) in <top (required)>'
       
            11.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                  NameError:
                    method `exitstatus' not defined in NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        12) Puppet::Type::Package::ProviderPkg#methods :query on solaris 11 should find the package
            Got 0 failures and 2 other errors:
       
            12.1) Failure/Error: $CHILD_STATUS.stubs(:exitstatus).returns 0
       
                  RuntimeError:
                    can't modify frozen NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:16:in `mocha'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:102:in `block in stubs'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `call'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `each'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:97:in `stubs'
                  # ./spec/unit/provider/package/pkg_spec.rb:198:in `block (5 levels) in <top (required)>'
       
            12.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                  NameError:
                    method `exitstatus' not defined in NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        13) Puppet::Type::Package::ProviderPkg#methods :query on solaris 11 should return :absent when the package is not found
            Got 0 failures and 2 other errors:
       
            13.1) Failure/Error: $CHILD_STATUS.stubs(:exitstatus).returns 1
       
                  RuntimeError:
                    can't modify frozen NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:16:in `mocha'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:102:in `block in stubs'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `call'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `each'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:97:in `stubs'
                  # ./spec/unit/provider/package/pkg_spec.rb:211:in `block (5 levels) in <top (required)>'
       
            13.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                  NameError:
                    method `exitstatus' not defined in NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        14) Puppet::Type::Package::ProviderPkg#methods :install should accept all licenses
            Got 0 failures and 2 other errors:
       
            14.1) Failure/Error: $CHILD_STATUS.stubs(:exitstatus).returns 0
       
                  RuntimeError:
                    can't modify frozen NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:16:in `mocha'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:102:in `block in stubs'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `call'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `each'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:97:in `stubs'
                  # ./spec/unit/provider/package/pkg_spec.rb:230:in `block (4 levels) in <top (required)>'
       
            14.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                  NameError:
                    method `exitstatus' not defined in NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        15) Puppet::Type::Package::ProviderPkg#methods :install should install specific version(1)
            Got 0 failures and 2 other errors:
       
            15.1) Failure/Error: $CHILD_STATUS.stubs(:exitstatus).returns 0
       
                  RuntimeError:
                    can't modify frozen NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:16:in `mocha'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:102:in `block in stubs'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `call'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `each'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:97:in `stubs'
                  # ./spec/unit/provider/package/pkg_spec.rb:237:in `block (4 levels) in <top (required)>'
       
            15.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                  NameError:
                    method `exitstatus' not defined in NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        16) Puppet::Type::Package::ProviderPkg#methods :install should install specific version(2)
            Got 0 failures and 2 other errors:
       
            16.1) Failure/Error: $CHILD_STATUS.stubs(:exitstatus).returns 0
       
                  RuntimeError:
                    can't modify frozen NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:16:in `mocha'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:102:in `block in stubs'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `call'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `each'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:97:in `stubs'
                  # ./spec/unit/provider/package/pkg_spec.rb:249:in `block (4 levels) in <top (required)>'
       
            16.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                  NameError:
                    method `exitstatus' not defined in NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        17) Puppet::Type::Package::ProviderPkg#methods :install should downgrade to specific version
            Got 0 failures and 2 other errors:
       
            17.1) Failure/Error: $CHILD_STATUS.stubs(:exitstatus).returns 0
       
                  RuntimeError:
                    can't modify frozen NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:16:in `mocha'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:102:in `block in stubs'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `call'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `each'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:97:in `stubs'
                  # ./spec/unit/provider/package/pkg_spec.rb:256:in `block (4 levels) in <top (required)>'
       
            17.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                  NameError:
                    method `exitstatus' not defined in NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        18) Puppet::Type::Package::ProviderPkg#methods :install should install any if version is not specified
            Got 0 failures and 2 other errors:
       
            18.1) Failure/Error: $CHILD_STATUS.stubs(:exitstatus).returns 0
       
                  RuntimeError:
                    can't modify frozen NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:16:in `mocha'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:102:in `block in stubs'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `call'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `each'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:97:in `stubs'
                  # ./spec/unit/provider/package/pkg_spec.rb:267:in `block (4 levels) in <top (required)>'
       
            18.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                  NameError:
                    method `exitstatus' not defined in NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        19) Puppet::Type::Package::ProviderPkg#methods :install should install if no version was previously installed, and a specific version was requested
            Got 0 failures and 2 other errors:
       
            19.1) Failure/Error: $CHILD_STATUS.stubs(:exitstatus).returns 0
       
                  RuntimeError:
                    can't modify frozen NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:16:in `mocha'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:102:in `block in stubs'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `call'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `each'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:97:in `stubs'
                  # ./spec/unit/provider/package/pkg_spec.rb:276:in `block (4 levels) in <top (required)>'
       
            19.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                  NameError:
                    method `exitstatus' not defined in NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        20) Puppet::Type::Package::ProviderPkg#methods :install installs the latest matching version when given implicit version, and none are installed
            Got 0 failures and 2 other errors:
       
            20.1) Failure/Error: $CHILD_STATUS.stubs(:exitstatus).returns 0
       
                  RuntimeError:
                    can't modify frozen NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:16:in `mocha'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:102:in `block in stubs'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `call'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `each'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:97:in `stubs'
                  # ./spec/unit/provider/package/pkg_spec.rb:288:in `block (4 levels) in <top (required)>'
       
            20.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                  NameError:
                    method `exitstatus' not defined in NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        21) Puppet::Type::Package::ProviderPkg#methods :install updates to the latest matching version when given implicit version
            Got 0 failures and 2 other errors:
       
            21.1) Failure/Error: $CHILD_STATUS.stubs(:exitstatus).returns 0
       
                  RuntimeError:
                    can't modify frozen NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:16:in `mocha'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:102:in `block in stubs'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `call'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `each'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:97:in `stubs'
                  # ./spec/unit/provider/package/pkg_spec.rb:301:in `block (4 levels) in <top (required)>'
       
            21.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                  NameError:
                    method `exitstatus' not defined in NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        22) Puppet::Type::Package::ProviderPkg#methods :install issues a warning when an implicit version number is used, and in sync
            Got 0 failures and 2 other errors:
       
            22.1) Failure/Error: $CHILD_STATUS.stubs(:exitstatus).returns 4
       
                  RuntimeError:
                    can't modify frozen NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:16:in `mocha'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:102:in `block in stubs'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `call'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `each'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:97:in `stubs'
                  # ./spec/unit/provider/package/pkg_spec.rb:312:in `block (4 levels) in <top (required)>'
       
            22.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                  NameError:
                    method `exitstatus' not defined in NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        23) Puppet::Type::Package::ProviderPkg#methods :install issues a warning when choosing a version number for an implicit match
            Got 0 failures and 2 other errors:
       
            23.1) Failure/Error: $CHILD_STATUS.stubs(:exitstatus).returns 0
       
                  RuntimeError:
                    can't modify frozen NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:16:in `mocha'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:102:in `block in stubs'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `call'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/argument_iterator.rb:15:in `each'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/object.rb:97:in `stubs'
                  # ./spec/unit/provider/package/pkg_spec.rb:323:in `block (4 levels) in <top (required)>'
       
            23.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                  NameError:
                    method `exitstatus' not defined in NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        24) Puppet::Type::Package::ProviderPkg#methods :update should not raise error if not necessary
            Got 0 failures and 2 other errors:
       
            24.1) Failure/Error: described_class.expects(:pkg).with(:list, '-Hvfa', 'dummy@1.0-0.151006').returns File.read(my_fixture('dummy_implicit_version'))
       
                  Mocha::ExpectationError:
                    not all expectations were satisfied
                    unsatisfied expectations:
                    - expected exactly once, not yet invoked: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvfa', 'dummy@1.0-0.151006')
                    - expected exactly once, not yet invoked: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvfa', 'dummy@1.0-0.151006')
                    - expected exactly once, not yet invoked: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvfa', 'dummy@1.0-0.151006')
                    - expected exactly once, not yet invoked: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvfa', 'dummy@1.0-0.151006')
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '-n', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '-n', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '--accept', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '-n', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '--accept', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '-n', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '--accept', 'dummy@0.0.7'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'unfreeze', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'unfreeze', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '--accept', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '--accept', 'dummy@0.0.8'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'unfreeze', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'unfreeze', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '--accept', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '-n', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).unhold()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).unhold()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).warning('Implicit version 1.0-0.151006 has 3 possible matches')
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).warning('Selecting version '1.0,5.11-0.151006:20140220T084443Z' for implicit '1.0-0.151006'')
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).warning('Implicit version 1.0-0.151006 has 3 possible matches')
                    satisfied expectations:
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected never, not yet invoked: Puppet::Type::Package::ProviderPkg.warning(any_parameters)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected never, not yet invoked: Puppet.warning(/pkg warning/)
                    - expected exactly once, invoked once: Puppet.warning('pkg warning: Certificate '/var/pkg/ssl/871b4ed0ade09926e6adf95f86bf17535f987684' for publisher 'solarisstudio', needed to access 'https://pkg.oracle.com/solarisstudio/release/', will expire in '29' days.')
                    - expected exactly once, invoked once: Package[dummy](provider=pkg).install(true)
                  # ./spec/unit/provider/package/pkg_spec.rb:321:in `block (4 levels) in <top (required)>'
       
            24.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                  NameError:
                    method `exitstatus' not defined in NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        25) Puppet::Type::Package::ProviderPkg#methods :update should not raise error if not necessary (2)
            Got 0 failures and 2 other errors:
       
            25.1) Failure/Error: described_class.expects(:pkg).with(:list, '-Hvfa', 'dummy@1.0-0.151006').returns File.read(my_fixture('dummy_implicit_version'))
       
                  Mocha::ExpectationError:
                    not all expectations were satisfied
                    unsatisfied expectations:
                    - expected exactly once, not yet invoked: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvfa', 'dummy@1.0-0.151006')
                    - expected exactly once, not yet invoked: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvfa', 'dummy@1.0-0.151006')
                    - expected exactly once, not yet invoked: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvfa', 'dummy@1.0-0.151006')
                    - expected exactly once, not yet invoked: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvfa', 'dummy@1.0-0.151006')
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '-n', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '-n', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '--accept', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '-n', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '--accept', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '-n', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '--accept', 'dummy@0.0.7'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'unfreeze', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'unfreeze', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '--accept', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '--accept', 'dummy@0.0.8'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'unfreeze', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'unfreeze', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '--accept', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '-n', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).unhold()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).unhold()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).warning('Implicit version 1.0-0.151006 has 3 possible matches')
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).warning('Selecting version '1.0,5.11-0.151006:20140220T084443Z' for implicit '1.0-0.151006'')
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).warning('Implicit version 1.0-0.151006 has 3 possible matches')
                    satisfied expectations:
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected never, not yet invoked: Puppet::Type::Package::ProviderPkg.warning(any_parameters)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected never, not yet invoked: Puppet.warning(/pkg warning/)
                    - expected exactly once, invoked once: Puppet.warning('pkg warning: Certificate '/var/pkg/ssl/871b4ed0ade09926e6adf95f86bf17535f987684' for publisher 'solarisstudio', needed to access 'https://pkg.oracle.com/solarisstudio/release/', will expire in '29' days.')
                    - expected exactly once, invoked once: Package[dummy](provider=pkg).install(true)
                    - expected exactly once, invoked once: Package[dummy](provider=pkg).install(true)
                  # ./spec/unit/provider/package/pkg_spec.rb:321:in `block (4 levels) in <top (required)>'
       
            25.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                  NameError:
                    method `exitstatus' not defined in NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        26) Puppet::Type::Package::ProviderPkg#methods :update should raise error if necessary
            Got 0 failures and 2 other errors:
       
            26.1) Failure/Error: described_class.expects(:pkg).with(:list, '-Hvfa', 'dummy@1.0-0.151006').returns File.read(my_fixture('dummy_implicit_version'))
       
                  Mocha::ExpectationError:
                    not all expectations were satisfied
                    unsatisfied expectations:
                    - expected exactly once, not yet invoked: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvfa', 'dummy@1.0-0.151006')
                    - expected exactly once, not yet invoked: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvfa', 'dummy@1.0-0.151006')
                    - expected exactly once, not yet invoked: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvfa', 'dummy@1.0-0.151006')
                    - expected exactly once, not yet invoked: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvfa', 'dummy@1.0-0.151006')
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '-n', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '-n', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '--accept', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '-n', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '--accept', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '-n', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '--accept', 'dummy@0.0.7'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'unfreeze', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'unfreeze', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '--accept', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '--accept', 'dummy@0.0.8'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'unfreeze', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'unfreeze', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '--accept', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '-n', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).unhold()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).unhold()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).warning('Implicit version 1.0-0.151006 has 3 possible matches')
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).warning('Selecting version '1.0,5.11-0.151006:20140220T084443Z' for implicit '1.0-0.151006'')
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).warning('Implicit version 1.0-0.151006 has 3 possible matches')
                    satisfied expectations:
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected never, not yet invoked: Puppet::Type::Package::ProviderPkg.warning(any_parameters)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected never, not yet invoked: Puppet.warning(/pkg warning/)
                    - expected exactly once, invoked once: Puppet.warning('pkg warning: Certificate '/var/pkg/ssl/871b4ed0ade09926e6adf95f86bf17535f987684' for publisher 'solarisstudio', needed to access 'https://pkg.oracle.com/solarisstudio/release/', will expire in '29' days.')
                    - expected exactly once, invoked once: Package[dummy](provider=pkg).install(true)
                    - expected exactly once, invoked once: Package[dummy](provider=pkg).install(true)
                    - expected exactly once, invoked once: Package[dummy](provider=pkg).install(true)
                  # ./spec/unit/provider/package/pkg_spec.rb:321:in `block (4 levels) in <top (required)>'
       
            26.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                  NameError:
                    method `exitstatus' not defined in NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        27) Puppet::Type::Package::ProviderPkg#methods :uninstall should support current pkg version
            Got 0 failures and 2 other errors:
       
            27.1) Failure/Error: described_class.expects(:pkg).with(:list, '-Hvfa', 'dummy@1.0-0.151006').returns File.read(my_fixture('dummy_implicit_version'))
       
                  Mocha::ExpectationError:
                    not all expectations were satisfied
                    unsatisfied expectations:
                    - expected exactly once, not yet invoked: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvfa', 'dummy@1.0-0.151006')
                    - expected exactly once, not yet invoked: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvfa', 'dummy@1.0-0.151006')
                    - expected exactly once, not yet invoked: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvfa', 'dummy@1.0-0.151006')
                    - expected exactly once, not yet invoked: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvfa', 'dummy@1.0-0.151006')
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '-n', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '-n', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '--accept', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '-n', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '--accept', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '-n', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '--accept', 'dummy@0.0.7'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'unfreeze', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'unfreeze', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '--accept', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '--accept', 'dummy@0.0.8'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'unfreeze', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'unfreeze', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '--accept', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '-n', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).unhold()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).unhold()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).warning('Implicit version 1.0-0.151006 has 3 possible matches')
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).warning('Selecting version '1.0,5.11-0.151006:20140220T084443Z' for implicit '1.0-0.151006'')
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).warning('Implicit version 1.0-0.151006 has 3 possible matches')
                    satisfied expectations:
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg([:uninstall, 'dummy'])
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:version)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected never, not yet invoked: Puppet::Type::Package::ProviderPkg.warning(any_parameters)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected never, not yet invoked: Puppet.warning(/pkg warning/)
                    - expected exactly once, invoked once: Puppet.warning('pkg warning: Certificate '/var/pkg/ssl/871b4ed0ade09926e6adf95f86bf17535f987684' for publisher 'solarisstudio', needed to access 'https://pkg.oracle.com/solarisstudio/release/', will expire in '29' days.')
                    - expected exactly once, invoked once: Package[dummy](provider=pkg).install(true)
                    - expected exactly once, invoked once: Package[dummy](provider=pkg).install(true)
                    - expected exactly once, invoked once: Package[dummy](provider=pkg).install(true)
                  # ./spec/unit/provider/package/pkg_spec.rb:321:in `block (4 levels) in <top (required)>'
       
            27.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                  NameError:
                    method `exitstatus' not defined in NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
        28) Puppet::Type::Package::ProviderPkg#methods :uninstall should support original pkg commands
            Got 0 failures and 2 other errors:
       
            28.1) Failure/Error: described_class.expects(:pkg).with(:list, '-Hvfa', 'dummy@1.0-0.151006').returns File.read(my_fixture('dummy_implicit_version'))
       
                  Mocha::ExpectationError:
                    not all expectations were satisfied
                    unsatisfied expectations:
                    - expected exactly once, not yet invoked: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvfa', 'dummy@1.0-0.151006')
                    - expected exactly once, not yet invoked: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvfa', 'dummy@1.0-0.151006')
                    - expected exactly once, not yet invoked: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvfa', 'dummy@1.0-0.151006')
                    - expected exactly once, not yet invoked: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvfa', 'dummy@1.0-0.151006')
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '-n', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '-n', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '--accept', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '-n', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '--accept', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '-n', 'dummy@1.0,5.11-0.151006:20140220T084443Z'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '--accept', 'dummy@0.0.7'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'unfreeze', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'unfreeze', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '--accept', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '--accept', 'dummy@0.0.8'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'unfreeze', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'unfreeze', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'install', '--accept', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'list', '-Hv', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Puppet::Util::Execution.execute(['/bin/pkg', 'update', '-n', 'dummy'], {:failonfail => false, :combine => true})
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).unhold()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).unhold()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).query()
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).warning('Implicit version 1.0-0.151006 has 3 possible matches')
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).warning('Selecting version '1.0,5.11-0.151006:20140220T084443Z' for implicit '1.0-0.151006'')
                    - expected exactly once, not yet invoked: Package[dummy](provider=pkg).warning('Implicit version 1.0-0.151006 has 3 possible matches')
                    satisfied expectations:
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - allowed any number of times, not yet invoked: Signal.trap(any_parameters)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg([:uninstall, '-r', 'dummy'])
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:version)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg([:uninstall, 'dummy'])
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:version)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected never, not yet invoked: Puppet::Type::Package::ProviderPkg.warning(any_parameters)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hv')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected exactly once, invoked once: Puppet::Type::Package::ProviderPkg.pkg(:list, '-Hvn', 'dummy')
                    - allowed any number of times, not yet invoked: Puppet::Type::Package::ProviderPkg.command(:pkg)
                    - expected never, not yet invoked: Puppet.warning(/pkg warning/)
                    - expected exactly once, invoked once: Puppet.warning('pkg warning: Certificate '/var/pkg/ssl/871b4ed0ade09926e6adf95f86bf17535f987684' for publisher 'solarisstudio', needed to access 'https://pkg.oracle.com/solarisstudio/release/', will expire in '29' days.')
                    - expected exactly once, invoked once: Package[dummy](provider=pkg).install(true)
                    - expected exactly once, invoked once: Package[dummy](provider=pkg).install(true)
                    - expected exactly once, invoked once: Package[dummy](provider=pkg).install(true)
                  # ./spec/unit/provider/package/pkg_spec.rb:321:in `block (4 levels) in <top (required)>'
       
            28.2) Failure/Error: stubbee.__metaclass__.send(:remove_method, method)
       
                  NameError:
                    method `exitstatus' not defined in NilClass
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:55:in `remove_new_method'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/class_method.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:20:in `unstub'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/central.rb:27:in `unstub_all'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/mockery.rb:65:in `teardown'
                  # /usr/local/opt/rbenv/versions/2.2.3/gemsets/puppet-45/gems/mocha-0.10.5/lib/mocha/api.rb:160:in `mocha_teardown'
       
      Finished in 0.21246 seconds (files took 2.5 seconds to load)
      49 examples, 28 failures
       
      Failed examples:
       
      rspec ./spec/unit/provider/package/pkg_spec.rb:112 # Puppet::Type::Package::ProviderPkg#methods :latest should work correctly for ensure latest on solaris 11(known UFOXI)
      rspec ./spec/unit/provider/package/pkg_spec.rb:120 # Puppet::Type::Package::ProviderPkg#methods :latest should work correctly for ensure latest on solaris 11 (IFO)
      rspec ./spec/unit/provider/package/pkg_spec.rb:125 # Puppet::Type::Package::ProviderPkg#methods :latest should work correctly for ensure latest on solaris 11(known IFO)
      rspec ./spec/unit/provider/package/pkg_spec.rb:133 # Puppet::Type::Package::ProviderPkg#methods :latest issues a warning when the certificate has expired
      rspec ./spec/unit/provider/package/pkg_spec.rb:141 # Puppet::Type::Package::ProviderPkg#methods :latest doesn't issue a warning when the certificate hasn't expired
      rspec ./spec/unit/provider/package/pkg_spec.rb:150 # Puppet::Type::Package::ProviderPkg#methods :instances should correctly parse lines on solaris 11
      rspec ./spec/unit/provider/package/pkg_spec.rb:159 # Puppet::Type::Package::ProviderPkg#methods :instances should fail on incorrect lines
      rspec ./spec/unit/provider/package/pkg_spec.rb:167 # Puppet::Type::Package::ProviderPkg#methods :instances should fail on unknown package status
      rspec ./spec/unit/provider/package/pkg_spec.rb:216 # Puppet::Type::Package::ProviderPkg#methods :query should return fail when the packageline cannot be parsed
      rspec ./spec/unit/provider/package/pkg_spec.rb:177 # Puppet::Type::Package::ProviderPkg#methods :query on solaris 10 should find the package
      rspec ./spec/unit/provider/package/pkg_spec.rb:189 # Puppet::Type::Package::ProviderPkg#methods :query on solaris 10 should return :absent when the package is not found
      rspec ./spec/unit/provider/package/pkg_spec.rb:197 # Puppet::Type::Package::ProviderPkg#methods :query on solaris 11 should find the package
      rspec ./spec/unit/provider/package/pkg_spec.rb:209 # Puppet::Type::Package::ProviderPkg#methods :query on solaris 11 should return :absent when the package is not found
      rspec ./spec/unit/provider/package/pkg_spec.rb:226 # Puppet::Type::Package::ProviderPkg#methods :install should accept all licenses
      rspec ./spec/unit/provider/package/pkg_spec.rb:234 # Puppet::Type::Package::ProviderPkg#methods :install should install specific version(1)
      rspec ./spec/unit/provider/package/pkg_spec.rb:244 # Puppet::Type::Package::ProviderPkg#methods :install should install specific version(2)
      rspec ./spec/unit/provider/package/pkg_spec.rb:253 # Puppet::Type::Package::ProviderPkg#methods :install should downgrade to specific version
      rspec ./spec/unit/provider/package/pkg_spec.rb:262 # Puppet::Type::Package::ProviderPkg#methods :install should install any if version is not specified
      rspec ./spec/unit/provider/package/pkg_spec.rb:271 # Puppet::Type::Package::ProviderPkg#methods :install should install if no version was previously installed, and a specific version was requested
      rspec ./spec/unit/provider/package/pkg_spec.rb:280 # Puppet::Type::Package::ProviderPkg#methods :install installs the latest matching version when given implicit version, and none are installed
      rspec ./spec/unit/provider/package/pkg_spec.rb:293 # Puppet::Type::Package::ProviderPkg#methods :install updates to the latest matching version when given implicit version
      rspec ./spec/unit/provider/package/pkg_spec.rb:306 # Puppet::Type::Package::ProviderPkg#methods :install issues a warning when an implicit version number is used, and in sync
      rspec ./spec/unit/provider/package/pkg_spec.rb:316 # Puppet::Type::Package::ProviderPkg#methods :install issues a warning when choosing a version number for an implicit match
      rspec ./spec/unit/provider/package/pkg_spec.rb:329 # Puppet::Type::Package::ProviderPkg#methods :update should not raise error if not necessary
      rspec ./spec/unit/provider/package/pkg_spec.rb:334 # Puppet::Type::Package::ProviderPkg#methods :update should not raise error if not necessary (2)
      rspec ./spec/unit/provider/package/pkg_spec.rb:339 # Puppet::Type::Package::ProviderPkg#methods :update should raise error if necessary
      rspec ./spec/unit/provider/package/pkg_spec.rb:348 # Puppet::Type::Package::ProviderPkg#methods :uninstall should support current pkg version
      rspec ./spec/unit/provider/package/pkg_spec.rb:354 # Puppet::Type::Package::ProviderPkg#methods :uninstall should support original pkg commands
      

        Attachments

          Activity

            People

            • Assignee:
              moses Moses Mendoza
              Reporter:
              shawnferry Shawn Ferry
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support