summaryrefslogtreecommitdiff
path: root/spec/integration
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2016-08-17 03:06:12 +0100
committerGitHub <noreply@github.com>2016-08-17 03:06:12 +0100
commite172cb0f88fcc14c51c798ccd4ade09045f05564 (patch)
tree51baf63c641e9a1da9464778f65650d193798980 /spec/integration
parent51581a0d11ddfac8db97712c6c3c680910db706c (diff)
parent2e1a19c7111554dbaaf985de72d6ad7e79af6f26 (diff)
downloadchef-e172cb0f88fcc14c51c798ccd4ade09045f05564.tar.gz
Merge pull request #5196 from chef/lcg/more-cops
Add more cops to chefstyle enforcement
Diffstat (limited to 'spec/integration')
-rw-r--r--spec/integration/recipes/resource_action_spec.rb36
1 files changed, 16 insertions, 20 deletions
diff --git a/spec/integration/recipes/resource_action_spec.rb b/spec/integration/recipes/resource_action_spec.rb
index 8f6f4b7f46..f3d1321b9b 100644
--- a/spec/integration/recipes/resource_action_spec.rb
+++ b/spec/integration/recipes/resource_action_spec.rb
@@ -139,26 +139,6 @@ module ResourceActionSpec
attr_accessor :ruby_block_converged
end
- public
-
- def foo_public
- "foo_public!"
- end
-
- protected
-
- def foo_protected
- "foo_protected!"
- end
-
- private
-
- def foo_private
- "foo_private!"
- end
-
- public
-
action :access_recipe_dsl do
ActionJackson.ran_action = :access_recipe_dsl
ruby_block "hi there" do
@@ -199,6 +179,22 @@ module ResourceActionSpec
ActionJackson.ran_action = :access_class_method
ActionJackson.succeeded = ActionJackson.ruby_block_converged
end
+
+ def foo_public
+ "foo_public!"
+ end
+
+ protected
+
+ def foo_protected
+ "foo_protected!"
+ end
+
+ private
+
+ def foo_private
+ "foo_private!"
+ end
end
before(:each) {