diff options
| author | Luke Kanies <luke@madstop.com> | 2008-04-11 13:50:36 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-04-11 13:50:36 -0500 |
| commit | a6a397b21ce9306307c7614b671de63d74d8141e (patch) | |
| tree | c8f180d82ad72af990c50dd3fe2e0fe02c81a6d8 /spec | |
| parent | 04aba5253d774fae013919605363022781f16d55 (diff) | |
| download | puppet-a6a397b21ce9306307c7614b671de63d74d8141e.tar.gz puppet-a6a397b21ce9306307c7614b671de63d74d8141e.tar.xz puppet-a6a397b21ce9306307c7614b671de63d74d8141e.zip | |
The 'destroy' method in the indirection now returns
the results of destroying, so they can return true
or false.
Diffstat (limited to 'spec')
| -rwxr-xr-x | spec/unit/indirector/indirection.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/indirector/indirection.rb b/spec/unit/indirector/indirection.rb index e8ab9633b..cefd0557e 100755 --- a/spec/unit/indirector/indirection.rb +++ b/spec/unit/indirector/indirection.rb @@ -356,9 +356,9 @@ describe Puppet::Indirector::Indirection do it_should_behave_like "Indirection Delegator" it_should_behave_like "Delegation Authorizer" - it "should return nil" do - @terminus.stubs(:destroy) - @indirection.destroy("/my/key").should be_nil + it "should return the result of removing the instance" do + @terminus.stubs(:destroy).returns "yayness" + @indirection.destroy("/my/key").should == "yayness" end describe "when caching is enabled" do |
