test/unit/plugins/guests/smartos/cap/mount_nfs_test.rb in vagrant-unbundled-1.9.7.1 vs test/unit/plugins/guests/smartos/cap/mount_nfs_test.rb in vagrant-unbundled-1.9.8.1

- old
+ new

@@ -11,11 +11,11 @@ let(:machine) { double("machine") } let(:comm) { VagrantTests::DummyCommunicator::Communicator.new(machine) } let(:config) { double("config", smartos: VagrantPlugins::GuestSmartos::Config.new) } before do - machine.stub(:communicate).and_return(comm) - machine.stub(:config).and_return(config) + allow(machine).to receive(:communicate).and_return(comm) + allow(machine).to receive(:config).and_return(config) end after do comm.verify_expectations! end