diff options
| author | Luke Kanies <luke@puppetlabs.com> | 2011-02-22 23:04:45 -0800 |
|---|---|---|
| committer | Luke Kanies <luke@puppetlabs.com> | 2011-02-22 23:04:45 -0800 |
| commit | bec807e5a12e24c11aedb40a997b154f1bed62c0 (patch) | |
| tree | d148005c4339498688116052ffaedc658efccaeb /spec | |
| parent | 368210e8a8a35cf2cae509b1d357337f9958cdff (diff) | |
Fixing 'puppet interface list'
Also added a test to hopefully confirm it won't
break again.
Signed-off-by: Luke Kanies <luke@puppetlabs.com>
Diffstat (limited to 'spec')
| -rw-r--r-- | spec/unit/application/interface_spec.rb | 10 | ||||
| -rw-r--r-- | spec/unit/interface_spec.rb | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/spec/unit/application/interface_spec.rb b/spec/unit/application/interface_spec.rb new file mode 100644 index 000000000..153e9bdc1 --- /dev/null +++ b/spec/unit/application/interface_spec.rb @@ -0,0 +1,10 @@ +#!/usr/bin/env ruby + +require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper.rb') +require 'puppet/application/interface' + +describe Puppet::Application::Interface do + it "should be an application" do + Puppet::Application::Interface.superclass.should equal(Puppet::Application) + end +end diff --git a/spec/unit/interface_spec.rb b/spec/unit/interface_spec.rb index 5d25623e7..774c0bd91 100644 --- a/spec/unit/interface_spec.rb +++ b/spec/unit/interface_spec.rb @@ -19,7 +19,7 @@ describe Puppet::Interface do end it "should load actions" do - Puppet::Interface.expects(:load_actions).with(:me) + Puppet::Interface.any_instance.expects(:load_actions) Puppet::Interface.new(:me) end |
