From 4d2a367b0cf5bf03588b1e6bbfafdf437bea249e Mon Sep 17 00:00:00 2001 From: Daniel Pittman Date: Mon, 4 Apr 2011 14:34:51 -0700 Subject: (#6964) use 'when_invoked' rather than 'invoke' for actions. In the DSL we want to use 'when_invoked do' because it reads much more naturally for users. Reviewed-By: Pieter van de Bruggen --- spec/unit/application/string_base_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/unit/application/string_base_spec.rb') diff --git a/spec/unit/application/string_base_spec.rb b/spec/unit/application/string_base_spec.rb index 71e67283d..753d911d1 100755 --- a/spec/unit/application/string_base_spec.rb +++ b/spec/unit/application/string_base_spec.rb @@ -23,7 +23,7 @@ describe Puppet::Application::StringBase do action :foo do option("--action") - invoke { |*args| args.length } + when_invoked { |*args| args.length } end end end -- cgit