diff options
author | Nick Lewis <nick@puppetlabs.com> | 2011-08-16 11:45:55 -0700 |
---|---|---|
committer | Nick Lewis <nick@puppetlabs.com> | 2011-08-16 11:45:55 -0700 |
commit | 66d852bb2c2b66ff5e7c9966fdb510e2edd529db (patch) | |
tree | c5e682eda7956676f43091927723842c76f6802d /spec/unit/application | |
parent | 39116d4a6ed4861e46b16ba26c679a8b346fca00 (diff) | |
parent | 1049458461b5ec5e1e48ad0244d63eb24626b09d (diff) | |
download | puppet-66d852bb2c2b66ff5e7c9966fdb510e2edd529db.tar.gz puppet-66d852bb2c2b66ff5e7c9966fdb510e2edd529db.tar.xz puppet-66d852bb2c2b66ff5e7c9966fdb510e2edd529db.zip |
Merge branch '2.7.x'
Conflicts:
lib/puppet/provider/augeas/augeas.rb
spec/unit/node_spec.rb
Diffstat (limited to 'spec/unit/application')
-rwxr-xr-x | spec/unit/application/apply_spec.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/unit/application/apply_spec.rb b/spec/unit/application/apply_spec.rb index f3ad893d3..1723258a6 100755 --- a/spec/unit/application/apply_spec.rb +++ b/spec/unit/application/apply_spec.rb @@ -12,6 +12,14 @@ describe Puppet::Application::Apply do Puppet::Util::Log.stubs(:newdestination) end + after :each do + Puppet::Node::Facts.indirection.reset_terminus_class + Puppet::Node::Facts.indirection.cache_class = nil + + Puppet::Node.indirection.reset_terminus_class + Puppet::Node.indirection.cache_class = nil + end + [:debug,:loadclasses,:verbose,:use_nodes,:detailed_exitcodes].each do |option| it "should declare handle_#{option} method" do @apply.should respond_to("handle_#{option}".to_sym) @@ -48,7 +56,6 @@ describe Puppet::Application::Apply do end describe "during setup" do - before :each do Puppet::Log.stubs(:newdestination) Puppet.stubs(:parse_config) @@ -111,7 +118,6 @@ describe Puppet::Application::Apply do end describe "when executing" do - it "should dispatch to 'apply' if it was called with 'apply'" do @apply.options[:catalog] = "foo" |