diff options
author | Rick Bradley <rick@rickbradley.com> | 2007-10-03 12:49:23 -0500 |
---|---|---|
committer | Rick Bradley <rick@rickbradley.com> | 2007-10-03 12:49:23 -0500 |
commit | 3f90ddbfc7d20b631ca17f72e2d72d5e7ca00629 (patch) | |
tree | deba4e518a4f04d22852e3502aef8af6f66bd20a | |
parent | 861c21d1d7de81a68d15be622521891083b7e258 (diff) | |
download | puppet-3f90ddbfc7d20b631ca17f72e2d72d5e7ca00629.tar.gz puppet-3f90ddbfc7d20b631ca17f72e2d72d5e7ca00629.tar.xz puppet-3f90ddbfc7d20b631ca17f72e2d72d5e7ca00629.zip |
Interpreting "hidden" class from spec drafts as a REST Controller. This name, functionality, and/or location in the tree is subject to change, but it's down now somewhere so we can move forward on it.
-rw-r--r-- | lib/puppet/network/rest_controller.rb | 2 | ||||
-rw-r--r-- | spec/unit/network/rest_controller.rb | 14 |
2 files changed, 16 insertions, 0 deletions
diff --git a/lib/puppet/network/rest_controller.rb b/lib/puppet/network/rest_controller.rb new file mode 100644 index 000000000..76a9830ea --- /dev/null +++ b/lib/puppet/network/rest_controller.rb @@ -0,0 +1,2 @@ +class Puppet::Network::RESTController # :nodoc: +end diff --git a/spec/unit/network/rest_controller.rb b/spec/unit/network/rest_controller.rb new file mode 100644 index 000000000..86bdd8b58 --- /dev/null +++ b/spec/unit/network/rest_controller.rb @@ -0,0 +1,14 @@ +#!/usr/bin/env ruby +# +# Created by Rick Bradley on 2007-10-03. +# Copyright (c) 2007. All rights reserved. + +require File.dirname(__FILE__) + '/../../spec_helper' + +require 'puppet/network/rest_controller' + +describe Puppet::Network::RESTController, "in general" do + it "should take arguments from server, call the appropriate method with correct arguments (parameter passing)" + it "should serialize result data when methods are handled" + it "should serialize an error condition when indirection method call generates an exception" +end |