From 562ae5fb9d78b1a6d46e79bb41d8498f29246f41 Mon Sep 17 00:00:00 2001 From: Luke Kanies Date: Tue, 22 Mar 2011 19:10:35 -0700 Subject: WIP - all tests fail Signed-off-by: Luke Kanies --- spec/unit/interface/action_manager_spec.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'spec/unit/interface') 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 -- cgit