Sha256: dadb48d00001e5966cac048bbc5d375ac065a80ab2704ef715e87856e95bb10f

Contents?: true

Size: 493 Bytes

Versions: 18

Compression:

Stored size: 493 Bytes

Contents

#!/usr/bin/env rspec
require 'spec_helper'
require 'puppet/face'

describe Puppet::Face[:instrumentation_probe, '0.0.1'] do
  it_should_behave_like "an indirector face"

  describe 'when running #enable' do
    it 'should invoke #save' do
      subject.expects(:save).with(nil)
      subject.enable('hostname')
    end
  end

  describe 'when running #disable' do
    it 'should invoke #destroy' do
      subject.expects(:destroy).with(nil)
      subject.disable('hostname')
    end
  end
end

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
puppet-2.7.26 spec/unit/face/instrumentation_probe_spec.rb
puppet-2.7.25 spec/unit/face/instrumentation_probe_spec.rb
puppet-2.7.24 spec/unit/face/instrumentation_probe_spec.rb
puppet-2.7.23 spec/unit/face/instrumentation_probe_spec.rb
puppet-2.7.22 spec/unit/face/instrumentation_probe_spec.rb
puppet-2.7.21 spec/unit/face/instrumentation_probe_spec.rb
puppet-2.7.20 spec/unit/face/instrumentation_probe_spec.rb
puppet-2.7.20.rc1 spec/unit/face/instrumentation_probe_spec.rb
librarian-puppet-0.9.4 vendor/gems/ruby/1.8/gems/puppet-2.7.18/spec/unit/face/instrumentation_probe.rb
puppet-2.7.19 spec/unit/face/instrumentation_probe.rb
librarian-puppet-0.9.3 vendor/gems/ruby/1.8/gems/puppet-2.7.18/spec/unit/face/instrumentation_probe.rb
puppet-2.7.18 spec/unit/face/instrumentation_probe.rb
puppet-2.7.17 spec/unit/face/instrumentation_probe.rb
puppet-2.7.16 spec/unit/face/instrumentation_probe.rb
puppet-2.7.14 spec/unit/face/instrumentation_probe.rb
puppet-2.7.13 spec/unit/face/instrumentation_probe.rb
puppet-2.7.12 spec/unit/face/instrumentation_probe.rb
puppet-2.7.11 spec/unit/face/instrumentation_probe.rb