Sha256: 4f064830804ffa44d314f36cfca1bd68263fb51fce36ef871bcc1cf375b68d90
Contents?: true
Size: 760 Bytes
Versions: 26
Compression:
Stored size: 760 Bytes
Contents
require_relative "../../../../base" describe "VagrantPlugins::GuestDebian::Cap:RSync" do let(:described_class) do VagrantPlugins::GuestDebian::Plugin .components .guest_capabilities[:debian] .get(:rsync_install) end let(:machine) { double("machine") } let(:comm) { VagrantTests::DummyCommunicator::Communicator.new(machine) } before do allow(machine).to receive(:communicate).and_return(comm) end after do comm.verify_expectations! end describe ".rsync_install" do it "installs rsync" do described_class.rsync_install(machine) expect(comm.received_commands[0]).to match(/apt-get -yqq update/) expect(comm.received_commands[0]).to match(/apt-get -yqq install rsync/) end end end
Version data entries
26 entries across 22 versions & 5 rubygems