spec/unit/provider/service/redhat_spec.rb in microwave-1.0.4 vs spec/unit/provider/service/redhat_spec.rb in microwave-11.400.2
- old
+ new
@@ -42,10 +42,10 @@
describe "Chef::Provider::Service::Redhat" do
before(:each) do
@node = Chef::Node.new
- @node[:command] = {:ps => 'foo'}
+ @node.automatic_attrs[:command] = {:ps => 'foo'}
@events = Chef::EventDispatch::Dispatcher.new
@run_context = Chef::RunContext.new(@node, {}, @events)
@new_resource = Chef::Resource::Service.new("chef")