Sha256: 6f2abf67b9a6aa2704cc02bd1e0597ae6fc6c039e42aebd1da63a2aa6c8f671a

Contents?: true

Size: 721 Bytes

Versions: 5

Compression:

Stored size: 721 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

5 entries across 5 versions & 1 rubygems

Version Path
vagrant-orchestrate-0.8.0 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.8.0.pre.3 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.8.0.pre.2 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.8.0.pre.1 spec/vagrant-orchestrate/command/root_spec.rb
vagrant-orchestrate-0.7.2 spec/vagrant-orchestrate/command/root_spec.rb