diff options
author | Stig Sandbeck Mathisen <ssm@debian.org> | 2014-09-07 10:14:36 +0200 |
---|---|---|
committer | Stig Sandbeck Mathisen <ssm@debian.org> | 2014-09-07 10:14:36 +0200 |
commit | d4b83be375ac1dead058e091191ee7c7b7c24c8a (patch) | |
tree | dc825687392ae3068de5b764be60c53122d9e02a /spec/unit/pops/loaders/static_loader_spec.rb | |
parent | 229cbb976fe0f70f5f30548b83517b415840f9bb (diff) | |
parent | 1681684857c6e39d60d87b0b3520d8783977ceff (diff) | |
download | puppet-upstream/3.7.0.tar.gz |
Imported Upstream version 3.7.0upstream/3.7.0
Diffstat (limited to 'spec/unit/pops/loaders/static_loader_spec.rb')
-rw-r--r-- | spec/unit/pops/loaders/static_loader_spec.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/unit/pops/loaders/static_loader_spec.rb b/spec/unit/pops/loaders/static_loader_spec.rb index e1a73273e..3d85f4522 100644 --- a/spec/unit/pops/loaders/static_loader_spec.rb +++ b/spec/unit/pops/loaders/static_loader_spec.rb @@ -37,6 +37,12 @@ describe 'the static loader' do it "uses the evaluator to format output" do expect(loader.load(:function, level).call({}, ['yay', 'surprise']).to_s).to eql('[yay, surprise]') end + + it 'outputs name of source (scope) by passing it to the Log utility' do + the_scope = {} + Puppet::Util::Log.any_instance.expects(:source=).with(the_scope) + loader.load(:function, level).call(the_scope, 'x') + end end end |