summaryrefslogtreecommitdiffstats
path: root/spec/unit/indirector/resource_type/rest_spec.rb
blob: 11071107aecb7a7531088590dd3907d641dc3c4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env ruby

require 'spec_helper'

require 'puppet/indirector/resource_type/rest'

describe Puppet::Indirector::ResourceType::Rest do
  it "should be registered with the resource_type indirection" do
    Puppet::Indirector::Terminus.terminus_class(:resource_type, :rest).should equal(Puppet::Indirector::ResourceType::Rest)
  end

  it "should be a subclass of Puppet::Indirector::Rest" do
    Puppet::Indirector::ResourceType::Rest.superclass.should == Puppet::Indirector::REST
  end
end