summaryrefslogtreecommitdiffstats
path: root/spec/unit/interface/action_builder_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/interface/action_builder_spec.rb')
-rwxr-xr-xspec/unit/interface/action_builder_spec.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/unit/interface/action_builder_spec.rb b/spec/unit/interface/action_builder_spec.rb
index 8f29c8a7b..aecaf198f 100755
--- a/spec/unit/interface/action_builder_spec.rb
+++ b/spec/unit/interface/action_builder_spec.rb
@@ -12,10 +12,11 @@ describe Puppet::Interface::ActionBuilder do
end
it "should define a method on the face which invokes the action" do
- face = Puppet::Interface.new(:action_builder_test_interface, '0.0.1')
- action = Puppet::Interface::ActionBuilder.build(face, :foo) do
- when_invoked do
- "invoked the method"
+ face = Puppet::Interface.new(:action_builder_test_interface, '0.0.1') do
+ action :foo do
+ when_invoked do
+ "invoked the method"
+ end
end
end