Sha256: aa6f268b4ea19653c24ccf7b9a9f5b4b53e2271c3c284a40c49dce1af2549ea7

Contents?: true

Size: 594 Bytes

Versions: 92

Compression:

Stored size: 594 Bytes

Contents

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

92 entries across 92 versions & 2 rubygems

Version Path
puppet-3.8.7 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.8.7-x86-mingw32 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.8.7-x64-mingw32 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.8.6 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.8.6-x86-mingw32 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.8.6-x64-mingw32 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.8.5 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.8.5-x86-mingw32 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.8.5-x64-mingw32 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.8.4 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.8.4-x86-mingw32 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.8.4-x64-mingw32 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.8.3 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.8.3-x86-mingw32 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.8.3-x64-mingw32 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.8.2 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.8.2-x86-mingw32 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.8.2-x64-mingw32 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.8.1 spec/unit/resource/type_collection_helper_spec.rb
puppet-3.8.1-x86-mingw32 spec/unit/resource/type_collection_helper_spec.rb