diff options
author | John Keiser <john@johnkeiser.com> | 2015-06-01 14:39:47 -0700 |
---|---|---|
committer | John Keiser <john@johnkeiser.com> | 2015-06-23 14:42:27 -0700 |
commit | 5d52f60b23e40770bf6fafa4c234de8f9feb7e35 (patch) | |
tree | 59e042de044e12cb3af05400751e7ef529ab775d /spec/integration | |
parent | bddc2e44470a3df99fe63b76a0ccc12c47e5fed1 (diff) | |
download | chef-5d52f60b23e40770bf6fafa4c234de8f9feb7e35.tar.gz |
Get tests running under Ruby 2.0
Diffstat (limited to 'spec/integration')
-rw-r--r-- | spec/integration/recipes/resource_action_spec.rb | 10 |
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 |