3
require File.dirname(__FILE__) + '/../spec_helper'
5
require 'puppet/configurer'
7
describe Puppet::Configurer do
8
describe "when downloading plugins" do
9
it "should use the :pluginsignore setting, split on whitespace, for ignoring remote files" do
10
resource = Puppet::Type.type(:notify).new :name => "yay"
11
Puppet::Type.type(:file).expects(:new).with { |args| args[:ignore] == Puppet[:pluginsignore].split(/\s+/) }.returns resource
13
configurer = Puppet::Configurer.new
14
configurer.stubs(:download_plugins?).returns true
15
configurer.download_plugins