spec/action/install_command_spec.rb in vagrant-notify-0.5.0 vs spec/action/install_command_spec.rb in vagrant-notify-0.5.1
- old
+ new
@@ -3,12 +3,13 @@
require 'vagrant-notify'
require 'vagrant-notify/action/install_command'
describe Vagrant::Notify::Action::InstallCommand do
let(:app) { lambda { |env| } }
+ let(:config) { mock(notify: stub(enable: true)) }
let(:env) { {notify_data: {port: host_port}, machine: machine, tmp_path: tmp_path} }
let(:host_port) { 12345 }
- let(:machine) { mock(communicate: communicator) }
+ let(:machine) { mock(communicate: communicator, config: config) }
let(:communicator) { mock(upload: true, sudo: true) }
let(:host_ip) { '192.168.1.2' }
let(:tmp_path) { Pathname.new(Dir.mktmpdir) }
let(:tmp_cmd_path) { tmp_path.join('vagrant-notify-send') }
let(:guest_tmp_path) { '/tmp/notify-send' }