diff options
author | Luke Kanies <luke@madstop.com> | 2008-04-11 15:04:54 -0500 |
---|---|---|
committer | Luke Kanies <luke@madstop.com> | 2008-04-11 15:04:54 -0500 |
commit | d9846fc3f06f61fcb4b8806740f77747a7f6939e (patch) | |
tree | c730c26f4f42a02a2c6c2c4a78fe97601c1b19b9 /spec/integration/indirector | |
parent | cb617f20ed6e0af362937760f33f5ddc34e626ee (diff) | |
download | puppet-d9846fc3f06f61fcb4b8806740f77747a7f6939e.tar.gz puppet-d9846fc3f06f61fcb4b8806740f77747a7f6939e.tar.xz puppet-d9846fc3f06f61fcb4b8806740f77747a7f6939e.zip |
Fixishing some pending tests, including filling in
the connection information.
Diffstat (limited to 'spec/integration/indirector')
-rw-r--r-- | spec/integration/indirector/rest.rb | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/integration/indirector/rest.rb b/spec/integration/indirector/rest.rb index 8e3c92d5c..cafcce713 100644 --- a/spec/integration/indirector/rest.rb +++ b/spec/integration/indirector/rest.rb @@ -38,7 +38,10 @@ describe Puppet::Indirector::REST do # the autoloader was clearly not written test-first. We subvert the integration test to get around its bullshit. Puppet::Indirector::Terminus.stubs(:terminus_class).returns(Puppet::TestIndirectedFoo::Rest) - Puppet::TestIndirectedFoo.terminus_class = :rest + Puppet::TestIndirectedFoo.indirection.stubs(:terminus_class).returns :rest + + # Stub the connection information. + Puppet::TestIndirectedFoo.indirection.terminus(:rest).stubs(:rest_connection_details).returns(:host => "localhost", :port => 34343) end describe "when finding a model instance over REST" do @@ -252,7 +255,10 @@ describe Puppet::Indirector::REST do # the autoloader was clearly not written test-first. We subvert the integration test to get around its bullshit. Puppet::Indirector::Terminus.stubs(:terminus_class).returns(Puppet::TestIndirectedFoo::Rest) - Puppet::TestIndirectedFoo.terminus_class = :rest + Puppet::TestIndirectedFoo.indirection.stubs(:terminus_class).returns :rest + + # Stub the connection information. + Puppet::TestIndirectedFoo.indirection.terminus(:rest).stubs(:rest_connection_details).returns(:host => "localhost", :port => 34343) end describe "when finding a model instance over REST" do |