summaryrefslogtreecommitdiff
path: root/spec/unit/pops/loaders/static_loader_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/pops/loaders/static_loader_spec.rb')
-rw-r--r--spec/unit/pops/loaders/static_loader_spec.rb6
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