diff options
| author | Daniel Pittman <daniel@puppetlabs.com> | 2011-07-22 13:30:05 -0700 |
|---|---|---|
| committer | Daniel Pittman <daniel@puppetlabs.com> | 2011-07-22 13:30:05 -0700 |
| commit | feec7b3df713569f76b93ae8cef882e9ddc1bf35 (patch) | |
| tree | 89d10d48744e76da63a083de85a86d5b867565ca /spec/unit/interface_spec.rb | |
| parent | f309e1e45c456cc1d53469863f59cbad0df37241 (diff) | |
| parent | 532c4f37e4f8289cf4a9871ebc0cb5086c2ba26a (diff) | |
| download | puppet-feec7b3df713569f76b93ae8cef882e9ddc1bf35.tar.gz puppet-feec7b3df713569f76b93ae8cef882e9ddc1bf35.tar.xz puppet-feec7b3df713569f76b93ae8cef882e9ddc1bf35.zip | |
Merge branch 'feature/2.7.x/7184-better-action-loading' into 2.7.x
Diffstat (limited to 'spec/unit/interface_spec.rb')
| -rwxr-xr-x | spec/unit/interface_spec.rb | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/spec/unit/interface_spec.rb b/spec/unit/interface_spec.rb index 4cb1f8743..4ff71ac3d 100755 --- a/spec/unit/interface_spec.rb +++ b/spec/unit/interface_spec.rb @@ -126,14 +126,11 @@ describe Puppet::Interface do end it "should try to require faces that are not known" do - pending "mocking require causes random stack overflow" - subject::FaceCollection.expects(:require).with "puppet/face/foo" - subject[:foo, '0.0.1'] + subject::FaceCollection.expects(:load_face).with(:foo, :current) + subject::FaceCollection.expects(:load_face).with(:foo, '0.0.1') + expect { subject[:foo, '0.0.1'] }.to raise_error Puppet::Error end - it "should be able to load all actions in all search paths" - - it_should_behave_like "things that declare options" do def add_options_to(&block) subject.new(:with_options, '0.0.1', &block) |
