spec/unit/provider/service/invokercd_service_spec.rb in microwave-1.0.4 vs spec/unit/provider/service/invokercd_service_spec.rb in microwave-11.400.2

- old
+ new

@@ -19,11 +19,11 @@ require 'spec_helper' describe Chef::Provider::Service::Invokercd, "load_current_resource" do before(:each) do @node = Chef::Node.new - @node[:command] = {:ps => "ps -ef"} + @node.automatic_attrs[:command] = {:ps => "ps -ef"} @events = Chef::EventDispatch::Dispatcher.new @run_context = Chef::RunContext.new(@node, {}, @events) @new_resource = Chef::Resource::Service.new("chef") @@ -93,17 +93,17 @@ end describe "when the node has not specified a ps command" do it "should raise error if the node has a nil ps attribute and no other means to get status" do - @node[:command] = {:ps => nil} + @node.automatic_attrs[:command] = {:ps => nil} @provider.action = :start @provider.define_resource_requirements lambda { @provider.process_resource_requirements }.should raise_error(Chef::Exceptions::Service) end it "should raise error if the node has an empty ps attribute and no other means to get status" do - @node[:command] = {:ps => ""} + @node.automatic_attrs[:command] = {:ps => ""} @provider.action = :start @provider.define_resource_requirements lambda { @provider.process_resource_requirements }.should raise_error(Chef::Exceptions::Service) end