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

Version Path
vagrant-orchestrate-0.7.1 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.7.0 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.7.0.pre.5 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.7.0.pre.4 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.7.0.pre.3 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.7.0.pre.2 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.7.0.pre.1 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.7.0.pre spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.6.5 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.6.3 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.6.2 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.6.1 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.6.1.patch spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.6.0 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.5.3 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.5.2 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.5.1 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.5.0 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.4.7 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.4.6 spec/vagrant-orchestrate/command/root_spec.rb