Sha256: 5be8f1bf8be62407d3d08c001a055358ce4d9485d1fb671dd97eeff6f5b3e2f2
Contents?: true
Size: 996 Bytes
Versions: 3
Compression:
Stored size: 996 Bytes
Contents
require 'spec_helper' describe 'VagrantPlugins::GuestAlpine::Cap::RSync' do 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 let(:described_class) do VagrantPlugins::GuestAlpine::Plugin.components.guest_capabilities[:alpine].get(:rsync_install) end it 'should install rsync' do communicator.should_receive(:sudo).with('apk add rsync') allow_message_expectations_on_nil described_class.rsync_install(machine) end let(:described_class) do VagrantPlugins::GuestAlpine::Plugin.components.guest_capabilities[:alpine].get(:rsync_installed) end it 'should verify rsync installed' do communicator.should_receive(:test).with('test -f /usr/bin/rsync') allow_message_expectations_on_nil described_class.rsync_installed(machine) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vagrant-alpine-0.2.0 | spec/cap/rsync_spec.rb |
vagrant-alpine-0.1.3 | spec/cap/rsync_spec.rb |
vagrant-alpine-0.1.1 | spec/cap/rsync_spec.rb |