Sha256: 6fe4bbdcc56ad0a407d3c6f18d150c3f1622075b54a4a261c134b6b126e46674
Contents?: true
Size: 725 Bytes
Versions: 40
Compression:
Stored size: 725 Bytes
Contents
require "vagrant-orchestrate/command/root" require "vagrant-orchestrate/command/init" require "vagrant-spec/unit" describe VagrantPlugins::Orchestrate::Command::Root do include_context "vagrant-unit" let(:argv) { [] } let(:iso_env) do env = isolated_environment env.vagrantfile("") env.create_vagrant_env ui_class: Vagrant::UI::Basic end subject { described_class.new(argv, iso_env) } ["", "-h", "--help"].each do |arg| describe "root help message #{arg}" do let(:argv) { [arg] } it "shows help" do output = capture_stdout { subject.execute } expect(output).to \ include("Usage: vagrant orchestrate <subcommand> [<args>]") end end end end
Version data entries
40 entries across 40 versions & 1 rubygems