diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-08-09 13:18:58 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-08-16 18:41:25 -0700 |
commit | 392814db246c40549504d935bed94ad5d6442bfa (patch) | |
tree | 7f7000b07f265a5c2a81d9132f8649b6f13835d6 /spec | |
parent | eba6379b0048ef33913a03c60677ed521a9c57e1 (diff) | |
download | chef-392814db246c40549504d935bed94ad5d6442bfa.tar.gz |
fix Lint/UselessAccessModifier cop
Diffstat (limited to 'spec')
-rw-r--r-- | spec/integration/recipes/resource_action_spec.rb | 36 | ||||
-rw-r--r-- | spec/support/shared/integration/knife_support.rb | 2 |
2 files changed, 16 insertions, 22 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) { diff --git a/spec/support/shared/integration/knife_support.rb b/spec/support/shared/integration/knife_support.rb index 01df9ab1a7..1a374e1b84 100644 --- a/spec/support/shared/integration/knife_support.rb +++ b/spec/support/shared/integration/knife_support.rb @@ -111,8 +111,6 @@ module KnifeSupport end end - private - class KnifeResult include ::RSpec::Matchers |