diff options
| author | Luke Kanies <luke@madstop.com> | 2008-06-13 16:04:54 -0500 |
|---|---|---|
| committer | Luke Kanies <luke@madstop.com> | 2008-06-13 16:04:54 -0500 |
| commit | 7b2c310e18b214424ae082e6ed2354a07b708c6f (patch) | |
| tree | de47912b326d3b1b1f67ed7430a4bcb1b07551eb | |
| parent | d816614a151a4c74751d569e8d2ac48b941d5f46 (diff) | |
| download | puppet-7b2c310e18b214424ae082e6ed2354a07b708c6f.tar.gz puppet-7b2c310e18b214424ae082e6ed2354a07b708c6f.tar.xz puppet-7b2c310e18b214424ae082e6ed2354a07b708c6f.zip | |
Adding another note about the save_object stub.
| -rwxr-xr-x | spec/integration/indirector/rest.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spec/integration/indirector/rest.rb b/spec/integration/indirector/rest.rb index cda524310..7edd0b865 100755 --- a/spec/integration/indirector/rest.rb +++ b/spec/integration/indirector/rest.rb @@ -413,6 +413,9 @@ describe Puppet::Indirector::REST do @instance = Puppet::TestIndirectedFoo.new(42) @mock_model = stub('faked model', :from_yaml => @instance) Puppet::Network::HTTP::MongrelREST.any_instance.stubs(:model).returns(@mock_model) + + # LAK:NOTE This stub is necessary to prevent the REST call from calling + # REST.save again, thus producing painful infinite recursion. Puppet::Network::HTTP::MongrelREST.any_instance.stubs(:save_object).returns(@instance) end |
