summaryrefslogtreecommitdiff
path: root/spec/unit/runner_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/runner_spec.rb')
-rw-r--r--spec/unit/runner_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/runner_spec.rb b/spec/unit/runner_spec.rb
index ffb0cd523f..cd2f656cf7 100644
--- a/spec/unit/runner_spec.rb
+++ b/spec/unit/runner_spec.rb
@@ -359,10 +359,10 @@ describe Chef::Runner do
first_resource.action = :buy
only_if_called_times = 0
- first_resource.only_if { only_if_called_times += 1; true }
+ first_resource.only_if do only_if_called_times += 1; true end
not_if_called_times = 0
- first_resource.not_if { not_if_called_times += 1; false }
+ first_resource.not_if do not_if_called_times += 1; false end
second_resource = Chef::Resource::Cat.new("carmel", run_context)
run_context.resource_collection << second_resource
@@ -387,7 +387,7 @@ describe Chef::Runner do
end
second_resource = Chef::Resource::RubyBlock.new("myblock", run_context)
run_context.resource_collection << second_resource
- second_resource.block { lazy_resources.call }
+ second_resource.block do lazy_resources.call end
runner.converge