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/string_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'spec/unit/string_spec.rb') diff --git a/spec/unit/string_spec.rb b/spec/unit/string_spec.rb index ddf855475..358668f9b 100755 --- a/spec/unit/string_spec.rb +++ b/spec/unit/string_spec.rb @@ -43,7 +43,7 @@ describe Puppet::String do it "should instance-eval any provided block" do face = Puppet::String.new(:string_test_block, '0.0.1') do action(:something) do - invoke { "foo" } + when_invoked { "foo" } end end -- cgit