diff options
| author | Pieter van de Bruggen <pieter@puppetlabs.com> | 2011-05-18 15:45:19 -0700 |
|---|---|---|
| committer | Pieter van de Bruggen <pieter@puppetlabs.com> | 2011-05-18 15:45:19 -0700 |
| commit | a622c95776d008c7aee64b553bdf127c86caed6f (patch) | |
| tree | c0525cb08e6c271b18b1275ecdea8bac5af5ca5d /spec | |
| parent | 3378841a230cb467173eed9ed5d3aaa6cd08b2fc (diff) | |
| parent | 83c756367ef4bfc404b2395362f796c2c942b053 (diff) | |
Merge branch 'tickets/2.7.x/7259' into 2.7.x
Diffstat (limited to 'spec')
| -rwxr-xr-x | spec/unit/indirector/face_spec.rb | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/spec/unit/indirector/face_spec.rb b/spec/unit/indirector/face_spec.rb index 1530f7270..943ff7991 100755 --- a/spec/unit/indirector/face_spec.rb +++ b/spec/unit/indirector/face_spec.rb @@ -16,8 +16,17 @@ describe Puppet::Indirector::Face do Puppet::Indirector::Face.indirections.should be_include("catalog") end - it "should be able to return a list of terminuses for a given indirection" do - Puppet::Indirector::Face.terminus_classes(:catalog).should be_include("compiler") + it "should return the sorted to_s list of terminus classes" do + Puppet::Indirector::Terminus.expects(:terminus_classes).returns([ + :yaml, + :compiler, + :rest + ]) + Puppet::Indirector::Face.terminus_classes(:catalog).should == [ + 'compiler', + 'rest', + 'yaml' + ] end describe "as an instance" do |
