summaryrefslogtreecommitdiffstats
path: root/spec/unit/string/action_builder_spec.rb
diff options
context:
space:
mode:
authorDaniel Pittman <daniel@puppetlabs.com>2011-04-04 14:34:51 -0700
committerDaniel Pittman <daniel@puppetlabs.com>2011-04-04 14:35:13 -0700
commit4d2a367b0cf5bf03588b1e6bbfafdf437bea249e (patch)
tree6f731f99d1e0e51ee4ba613851cc49b90633b27f /spec/unit/string/action_builder_spec.rb
parent75ef3af26fcd205f316358b2f23abe5e200f6eaf (diff)
downloadpuppet-4d2a367b0cf5bf03588b1e6bbfafdf437bea249e.tar.gz
puppet-4d2a367b0cf5bf03588b1e6bbfafdf437bea249e.tar.xz
puppet-4d2a367b0cf5bf03588b1e6bbfafdf437bea249e.zip
(#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 <pieter@puppetlabs.com>
Diffstat (limited to 'spec/unit/string/action_builder_spec.rb')
-rwxr-xr-xspec/unit/string/action_builder_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/string/action_builder_spec.rb b/spec/unit/string/action_builder_spec.rb
index fde010d51..5f6f1c08f 100755
--- a/spec/unit/string/action_builder_spec.rb
+++ b/spec/unit/string/action_builder_spec.rb
@@ -15,7 +15,7 @@ describe Puppet::String::ActionBuilder do
it "should define a method on the string which invokes the action" do
string = Puppet::String.new(:action_builder_test_string, '0.0.1')
action = Puppet::String::ActionBuilder.build(string, :foo) do
- invoke do
+ when_invoked do
"invoked the method"
end
end