spec/unit/ridley/resources/node_resource_spec.rb in ridley-1.0.0.rc3 vs spec/unit/ridley/resources/node_resource_spec.rb in ridley-1.0.0

- old
+ new

@@ -56,15 +56,15 @@ host_commander.should_receive(:ruby_script).with(host, command_lines, ssh: instance.ssh, winrm: instance.winrm) instance.ruby_script(host, command_lines) end end - describe "#execute_command" do + describe "#run" do let(:command) { "echo 'hello world'" } it "sends the message #run to the instance's host_commander" do host_commander.should_receive(:run).with(host, command, ssh: instance.ssh, winrm: instance.winrm) - instance.execute_command(host, command) + instance.run(host, command) end end describe "#merge_data" do let(:node_name) { "rspec-test" }