Sha256: 29d2196de4dcde2daf121f863aafac8a5b22b7b7d8e880b1c7a829b2c7cf9a15

Contents?: true

Size: 603 Bytes

Versions: 4

Compression:

Stored size: 603 Bytes

Contents

#! /usr/bin/env ruby -S rspec
require 'spec_helper'

require 'puppet/resource/type_collection_helper'

class RTCHelperTester
  include Puppet::Resource::TypeCollectionHelper
end

describe Puppet::Resource::TypeCollectionHelper do
  before do
    @helper = RTCHelperTester.new
  end

  it "should use its current environment to retrieve the known resource type collection" do
    env = stub 'environment'
    @helper.expects(:environment).returns env

    rtc = stub 'known_resource_types'
    env.expects(:known_resource_types).returns  rtc

    @helper.known_resource_types.should equal(rtc)
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
puppet-3.0.0.rc8 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.0.0.rc7 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.0.0.rc5 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.0.0.rc4 spec/unit/resource/type_collection_helper_spec.rb