summaryrefslogtreecommitdiff
path: root/spec/support/lib/chef/resource/with_state.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/support/lib/chef/resource/with_state.rb')
-rw-r--r--spec/support/lib/chef/resource/with_state.rb11
1 files changed, 2 insertions, 9 deletions
diff --git a/spec/support/lib/chef/resource/with_state.rb b/spec/support/lib/chef/resource/with_state.rb
index 226de0a6d2..efff2e7c12 100644
--- a/spec/support/lib/chef/resource/with_state.rb
+++ b/spec/support/lib/chef/resource/with_state.rb
@@ -22,16 +22,9 @@ require 'chef/json_compat'
class Chef
class Resource
class WithState < Chef::Resource
- attr_accessor :state
-
- def initialize(name, run_context=nil)
- @resource_name = :with_state
- super
- end
+ use_automatic_resource_name
- def state
- @state
- end
+ attr_accessor :state
end
end
end