Sha256: a1fa4dc319206c0efe46ca3ec1e13ce74fbc1bd6985e50d40dce28e1a9deb5a9
Contents?: true
Size: 872 Bytes
Versions: 32
Compression:
Stored size: 872 Bytes
Contents
require_relative "../../../../base" describe "VagrantPlugins::GuestSUSE::Cap::RSync" do let(:caps) do VagrantPlugins::GuestSUSE::Plugin .components .guest_capabilities[:suse] 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 let(:cap) { caps.get(:rsync_install) } it "installs rsync" do comm.expect_command("zypper -n install rsync") cap.rsync_install(machine) end end describe ".rsync_installed" do let(:cap) { caps.get(:rsync_installed) } it "checks if rsync is installed" do comm.expect_command("test -f /usr/bin/rsync") cap.rsync_installed(machine) end end end
Version data entries
32 entries across 28 versions & 6 rubygems