summaryrefslogtreecommitdiff
path: root/spec/integration/recipes/resource_action_spec.rb
diff options
context:
space:
mode:
authorJohn Keiser <john@johnkeiser.com>2015-06-01 14:39:47 -0700
committerJohn Keiser <john@johnkeiser.com>2015-06-23 14:42:27 -0700
commit5d52f60b23e40770bf6fafa4c234de8f9feb7e35 (patch)
tree59e042de044e12cb3af05400751e7ef529ab775d /spec/integration/recipes/resource_action_spec.rb
parentbddc2e44470a3df99fe63b76a0ccc12c47e5fed1 (diff)
downloadchef-5d52f60b23e40770bf6fafa4c234de8f9feb7e35.tar.gz
Get tests running under Ruby 2.0
Diffstat (limited to 'spec/integration/recipes/resource_action_spec.rb')
-rw-r--r--spec/integration/recipes/resource_action_spec.rb10
1 files changed, 7 insertions, 3 deletions
diff --git a/spec/integration/recipes/resource_action_spec.rb b/spec/integration/recipes/resource_action_spec.rb
index ca37a13ea3..4786294803 100644
--- a/spec/integration/recipes/resource_action_spec.rb
+++ b/spec/integration/recipes/resource_action_spec.rb
@@ -146,16 +146,20 @@ describe "Resource.action" do
attr_accessor :ruby_block_converged
end
- public def foo_public
+ public
+ def foo_public
'foo_public!'
end
- protected def foo_protected
+ protected
+ def foo_protected
'foo_protected!'
end
- private def foo_private
+ private
+ def foo_private
'foo_private!'
end
+ public
action :access_recipe_dsl do
ActionJackson.ran_action = :access_recipe_dsl
ruby_block 'hi there' do