diff options
| author | Luke Kanies <luke@puppetlabs.com> | 2011-03-22 19:10:35 -0700 |
|---|---|---|
| committer | Luke Kanies <luke@puppetlabs.com> | 2011-03-22 19:10:35 -0700 |
| commit | 562ae5fb9d78b1a6d46e79bb41d8498f29246f41 (patch) | |
| tree | d8648bb3b0ac24657dcd9ad56e2f8d09b4ffc6cc /spec/unit/interface | |
| parent | 562bd0f10be966bef725896af9ec3cdc30771ac6 (diff) | |
WIP - all tests fail
Signed-off-by: Luke Kanies <luke@puppetlabs.com>
Diffstat (limited to 'spec/unit/interface')
| -rw-r--r-- | spec/unit/interface/action_manager_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/unit/interface/action_manager_spec.rb b/spec/unit/interface/action_manager_spec.rb index bf101b344..d1a7e31be 100644 --- a/spec/unit/interface/action_manager_spec.rb +++ b/spec/unit/interface/action_manager_spec.rb @@ -38,6 +38,14 @@ describe Puppet::Interface::ActionManager do subject.should be_action(:foo) end + + it "should correctly treat action names specified as strings" do + subject.action(:foo) do + invoke { "something" } + end + + subject.should be_action("foo") + end end describe "when used to extend a class" do |
