Sha256: 4b6eb97771512d2ccbcd953577ea9b84c3919c138f0e609f1e89d870deba4c9e

Contents?: true

Size: 502 Bytes

Versions: 4

Compression:

Stored size: 502 Bytes

Contents

#! /usr/bin/env ruby -S 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

4 entries across 4 versions & 1 rubygems

Version Path
puppet-3.0.0.rc8 spec/unit/face/instrumentation_probe_spec.rb
puppet-3.0.0.rc7 spec/unit/face/instrumentation_probe_spec.rb
puppet-3.0.0.rc5 spec/unit/face/instrumentation_probe_spec.rb
puppet-3.0.0.rc4 spec/unit/face/instrumentation_probe_spec.rb