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

- old
+ new

@@ -12,23 +12,22 @@ 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' } let(:guest_path) { '/usr/bin/notify-send' } - let(:stubbed_template) { ERB.new('<%= host_ip %> <%= host_port %>') } + let(:stubbed_template) { ERB.new('<%= host_port %>') } subject { described_class.new(app, env) } before do ERB.stub(:new => stubbed_template) - subject.stub(local_ip: host_ip) subject.call(env) end after { FileUtils.rm_rf tmp_path.to_s } - it 'compiles command script passing host ip and server port' do - tmp_cmd_path.read.should == "#{host_ip} #{host_port}" + it 'compiles command script passing server port' do + tmp_cmd_path.read.should == "#{host_port}" end it 'uploads compiled command script over to guest machine' do communicator.should have_received(:upload).with(tmp_cmd_path.to_s, guest_tmp_path) end