Sha256: 419adc476b264331235641d112b780a4b5535ab471e9638c66d2b96c4321f5b5
Contents?: true
Size: 1019 Bytes
Versions: 15
Compression:
Stored size: 1019 Bytes
Contents
require_relative "../../../../base" require_relative "../../../../../../plugins/providers/docker/command/exec" describe VagrantPlugins::DockerProvider::Command::Exec do include_context "unit" include_context "command plugin helpers" let(:sandbox) do isolated_environment end let(:argv) { [] } let(:env) { sandbox.create_vagrant_env } let(:vagrantfile_path) { File.join(env.cwd, "Vagrantfile") } subject { described_class.new(argv, env) } before(:all) do I18n.load_path << Vagrant.source_root.join("templates/locales/providers_docker.yml") I18n.reload! end before do Vagrant.plugin("2").manager.stub(commands: {}) allow(subject).to receive(:exec_command) end after do sandbox.close end describe "#execute" do describe "without a command" do let(:argv) { [] } it "raises an error" do expect { subject.execute }.to raise_error(VagrantPlugins::DockerProvider::Errors::ExecCommandRequired) end end end end
Version data entries
15 entries across 15 versions & 3 rubygems