~ubuntu-branches/ubuntu/wily/puppet/wily-proposed

« back to all changes in this revision

Viewing changes to spec/unit/pops/loaders/static_loader_spec.rb

  • Committer: Package Import Robot
  • Author(s): Stig Sandbeck Mathisen
  • Date: 2014-10-24 13:47:15 UTC
  • mfrom: (3.1.64 sid)
  • Revision ID: package-import@ubuntu.com-20141024134715-6ig54u0c4gar36ss
Tags: 3.7.2-1
* Imported upstream release 3.7.2
* Declare compliance with Debian Policy 3.9.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
      it "uses the evaluator to format output" do
38
38
        expect(loader.load(:function, level).call({}, ['yay', 'surprise']).to_s).to eql('[yay, surprise]')
39
39
      end
 
40
 
 
41
      it 'outputs name of source (scope) by passing it to the Log utility' do
 
42
        the_scope = {}
 
43
        Puppet::Util::Log.any_instance.expects(:source=).with(the_scope)
 
44
        loader.load(:function, level).call(the_scope, 'x')
 
45
      end
40
46
    end
41
47
  end
42
48