diff options
| author | Nick Lewis <nick@puppetlabs.com> | 2011-04-13 17:02:05 -0700 |
|---|---|---|
| committer | Nick Lewis <nick@puppetlabs.com> | 2011-04-13 17:02:05 -0700 |
| commit | 7817ccb3438ad2742a98694373e42b65df86eda7 (patch) | |
| tree | 7c2f3adb6f6513b23b708be737f229c7fae98da2 /spec/unit/node | |
| parent | 02691637553d5637ee01a433a516b5d8cc9768a9 (diff) | |
| parent | 5915814c47649bb4b957b4be4fcee5919b859451 (diff) | |
Merge branch 'ticket/next/6928' into next
Diffstat (limited to 'spec/unit/node')
| -rwxr-xr-x | spec/unit/node/environment_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/unit/node/environment_spec.rb b/spec/unit/node/environment_spec.rb index b5efbd480..d1badfa3a 100755 --- a/spec/unit/node/environment_spec.rb +++ b/spec/unit/node/environment_spec.rb @@ -315,6 +315,14 @@ describe Puppet::Node::Environment do lambda { @env.instance_eval { perform_initial_import } }.should raise_error(Puppet::Error) end + it "should not do anything if the ignore_import settings is set" do + Puppet.settings[:ignoreimport] = true + @parser.expects(:string=).never + @parser.expects(:file=).never + @parser.expects(:parse).never + @env.instance_eval { perform_initial_import } + end + it "should mark the type collection as needing a reparse when there is an error parsing" do @parser.expects(:parse).raises Puppet::ParseError.new("Syntax error at ...") @env.stubs(:known_resource_types).returns Puppet::Resource::TypeCollection.new(@env) |
