diff options
| author | Luke Kanies <luke@puppetlabs.com> | 2011-03-02 17:19:36 -0800 |
|---|---|---|
| committer | Luke Kanies <luke@puppetlabs.com> | 2011-03-02 17:19:36 -0800 |
| commit | 63263a41ab361985845ef514a3d1247a41f46475 (patch) | |
| tree | f9d6eb160e4b05f43ccac67f497dd7a906085838 /spec/unit/interface | |
| parent | 23064bb601622f8a0efaf47c66a9fefec6e62f95 (diff) | |
| download | puppet-63263a41ab361985845ef514a3d1247a41f46475.tar.gz puppet-63263a41ab361985845ef514a3d1247a41f46475.tar.xz puppet-63263a41ab361985845ef514a3d1247a41f46475.zip | |
Fixing #13 - showconfig moved to indirector
I renamed it to 'info', too.
It only showed indirector-related info, so this
makes sense.
Signed-off-by: Luke Kanies <luke@puppetlabs.com>
Diffstat (limited to 'spec/unit/interface')
| -rw-r--r-- | spec/unit/interface/indirector_spec.rb | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/spec/unit/interface/indirector_spec.rb b/spec/unit/interface/indirector_spec.rb index 645c599b3..c0b738c96 100644 --- a/spec/unit/interface/indirector_spec.rb +++ b/spec/unit/interface/indirector_spec.rb @@ -45,15 +45,19 @@ describe Puppet::Interface::Indirector do @instance.indirection.expects(method).with(:test, "myargs") @instance.send(method, :test, "myargs") end + end - it "should be able to override its indirection name" do - @instance.set_indirection_name :foo - @instance.indirection_name.should == :foo - end + it "should be able to override its indirection name" do + @instance.set_indirection_name :foo + @instance.indirection_name.should == :foo + end - it "should be able to set its terminus class" do - @instance.indirection.expects(:terminus_class=).with(:myterm) - @instance.set_terminus(:myterm) - end + it "should be able to set its terminus class" do + @instance.indirection.expects(:terminus_class=).with(:myterm) + @instance.set_terminus(:myterm) + end + + it "should define a class-level 'info' action" do + Puppet::Interface::Indirector.should be_action(:info) end end |
