Sha256: 10084558da741d145c61f3904e3bd46a7dd92f3d57f829ce529c50117bf4b474

Contents?: true

Size: 659 Bytes

Versions: 6

Compression:

Stored size: 659 Bytes

Contents

#!/usr/bin/env ruby

require File.dirname(__FILE__) + '/../spec_helper'

require 'puppet/configurer'

describe Puppet::Configurer do
    describe "when downloading plugins" do
        it "should use the :pluginsignore setting, split on whitespace, for ignoring remote files" do
            resource = Puppet::Type.type(:notify).new :name => "yay"
            Puppet::Type.type(:file).expects(:new).with { |args| args[:ignore] == Puppet[:pluginsignore].split(/\s+/) }.returns resource

            configurer = Puppet::Configurer.new
            configurer.stubs(:download_plugins?).returns true
            configurer.download_plugins
        end
    end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
puppet-0.25.5 spec/integration/configurer.rb
puppet-0.25.4 spec/integration/configurer.rb
puppet-0.25.3 spec/integration/configurer.rb
puppet-0.25.2 spec/integration/configurer.rb
puppet-0.25.1 spec/integration/configurer.rb
puppet-0.25.0 spec/integration/configurer.rb