blob: d06849e5e9511323f3a5f9f3e0b98ebef85e4ff2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
#! /usr/bin/env ruby
require 'spec_helper'
require 'matchers/json'
require 'puppet/util/instrumentation'
require 'puppet/util/instrumentation/indirection_probe'
describe Puppet::Util::Instrumentation::IndirectionProbe do
include JSONMatchers
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
|