Sha256: 3440933816489187f8ea20aeea0cfc5cf00b148234d18fb44b7c7c6d24fc97ed

Contents?: true

Size: 613 Bytes

Versions: 4

Compression:

Stored size: 613 Bytes

Contents

#! /usr/bin/env ruby -S rspec

require 'spec_helper'
require 'matchers/json'
require 'puppet/util/instrumentation'
require 'puppet/util/instrumentation/indirection_probe'

describe Puppet::Util::Instrumentation::IndirectionProbe do
  Puppet::Util::Instrumentation::IndirectionProbe

  it "should indirect instrumentation_probe" do
    Puppet::Util::Instrumentation::IndirectionProbe.indirection.name.should == :instrumentation_probe
  end

  it "should return pson data" do
    probe = Puppet::Util::Instrumentation::IndirectionProbe.new("probe")
    probe.should set_json_attribute('name').to("probe")
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
puppet-3.0.0.rc8 spec/unit/util/instrumentation/indirection_probe_spec.rb
puppet-3.0.0.rc7 spec/unit/util/instrumentation/indirection_probe_spec.rb
puppet-3.0.0.rc5 spec/unit/util/instrumentation/indirection_probe_spec.rb
puppet-3.0.0.rc4 spec/unit/util/instrumentation/indirection_probe_spec.rb