Sha256: b43f795a61bbd20d0bc198f5a44e57d2efdadc76710faaef1be279291223e3ae

Contents?: true

Size: 777 Bytes

Versions: 10

Compression:

Stored size: 777 Bytes

Contents

require_relative "../../../../base"

require Vagrant.source_root.join("plugins/guests/windows/cap/rsync")

describe "VagrantPlugins::GuestWindows::Cap::RSync" do
  let(:described_class) do
    VagrantPlugins::GuestWindows::Plugin.components.guest_capabilities[:windows].get(:rsync_pre)
  end
  let(:machine) { double("machine") }
  let(:communicator) { VagrantTests::DummyCommunicator::Communicator.new(machine) }

  before do
    allow(machine).to receive(:communicate).and_return(communicator)
  end

  after do
    communicator.verify_expectations!
  end

  describe ".rsync_pre" do
    it 'makes the guestpath directory with mkdir' do
      communicator.expect_command("mkdir '/sync_dir'")
      described_class.rsync_pre(machine, guestpath: '/sync_dir')
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
vagrant-unbundled-1.9.5.1 test/unit/plugins/guests/windows/cap/rsync_test.rb
vagrant-unbundled-1.9.1.1 test/unit/plugins/guests/windows/cap/rsync_test.rb
vagrant-compose-yaml-0.1.3 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/test/unit/plugins/guests/windows/cap/rsync_test.rb
vagrant-compose-yaml-0.1.2 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/test/unit/plugins/guests/windows/cap/rsync_test.rb
vagrant-compose-yaml-0.1.1 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/test/unit/plugins/guests/windows/cap/rsync_test.rb
vagrant-compose-yaml-0.1.0 vendor/bundle/ruby/2.2.0/bundler/gems/vagrant-dbb756c7b6da/test/unit/plugins/guests/windows/cap/rsync_test.rb
vagrant-unbundled-1.8.5.2 test/unit/plugins/guests/windows/cap/rsync_test.rb
vagrant-unbundled-1.8.5.1 test/unit/plugins/guests/windows/cap/rsync_test.rb
vagrant-unbundled-1.8.4.2 test/unit/plugins/guests/windows/cap/rsync_test.rb
vagrant-unbundled-1.8.4.1 test/unit/plugins/guests/windows/cap/rsync_test.rb