test/unit/driver/pd_8_test.rb in vagrant-parallels-1.4.0.rc1 vs test/unit/driver/pd_8_test.rb in vagrant-parallels-1.4.0

- old
+ new

@@ -5,26 +5,6 @@ let(:parallels_version) { "8" } subject { VagrantPlugins::Parallels::Driver::Meta.new(uuid) } it_behaves_like "parallels desktop driver" - - describe "ssh_ip" do - let(:content) {'10.200.0.99="1394547632,1800,001c420000ff,01001c420000ff"'} - - it "returns an IP address assigned to the specified MAC" do - driver.should_receive(:read_mac_address).and_return("001C420000FF") - File.should_receive(:open).with(an_instance_of(String)). - and_return(StringIO.new(content)) - - subject.ssh_ip.should == "10.200.0.99" - end - - it "rises DhcpLeasesNotAccessible exception when file is not accessible" do - File.stub(:open).and_call_original - File.should_receive(:open).with(an_instance_of(String)). - and_raise(Errno::EACCES) - expect { subject.ssh_ip }. - to raise_error(VagrantPlugins::Parallels::Errors::DhcpLeasesNotAccessible) - end - end end