spec/action/stop_server_spec.rb in vagrant-notify-0.3.0 vs spec/action/stop_server_spec.rb in vagrant-notify-0.4.0

- old
+ new

@@ -3,10 +3,10 @@ require 'vagrant-notify/action/stop_server' describe Vagrant::Notify::Action::StopServer do let(:app) { lambda { |env| } } let(:communicator) { mock(sudo: true) } - let(:machine) { mock(communicate: communicator) } + let(:machine) { mock(communicate: communicator, state: stub(id: :running)) } let(:env) { {notify_data: {pid: pid, port: 1234}, machine: machine} } let(:pid) { '42' } let(:port) { described_class::PORT } subject { described_class.new(app, env) }