Sha256: db4f6d96714828f5681085445aa7575d28b7b61c84aed783082841a96cd054a8
Contents?: true
Size: 815 Bytes
Versions: 6
Compression:
Stored size: 815 Bytes
Contents
# encoding: UTF-8 # Copyright (c) 2015 VMware, Inc. All Rights Reserved. require File.expand_path("../../../../../base", __FILE__) describe "VagrantPlugins::GuestPhoton::Cap::Docker" do let(:described_class) do VagrantPlugins::GuestPhoton::Plugin.components.guest_capabilities[:photon].get(:docker_daemon_running) end let(:machine) { double("machine") } let(:communicator) { VagrantTests::DummyCommunicator::Communicator.new(machine) } let(:old_hostname) { 'oldhostname.olddomain.tld' } before do allow(machine).to receive(:communicate).and_return(communicator) end after do communicator.verify_expectations! end it 'should check docker' do expect(communicator).to receive(:test).with('test -S /run/docker.sock') described_class.docker_daemon_running(machine) end end
Version data entries
6 entries across 3 versions & 2 rubygems