Sha256: b43c739d6fa8de11753ce5717093c5e59e21bd8281b20a77c58e6110a889c7f4

Contents?: true

Size: 1003 Bytes

Versions: 10

Compression:

Stored size: 1003 Bytes

Contents

require "acceptance_helper"

RSpec.describe "User views help" do
  describe "boxes" do
    it "describes the tool" do
      run_command("boxes")

      expect(response).to have_exit_status(0)
      expect(response.stdout).to include(
        "A command line tool that takes the complexity out of " \
        "building Vagrant boxes.",
      )
    end

    it "shows available subcommands" do
      run_command("boxes")

      expect(response).to have_exit_status(0)
      expect(response.stdout).to include(
        "+ build     Build boxes",
      )
      expect(response.stdout).to include(
        "+ env       Manage the build environment",
      )
    end

    it "shows available options" do
      run_command("boxes")

      expect(response).to have_exit_status(0)
      expect(response.stdout).to include(
        "--version   Show the version of the tool",
      )
      expect(response.stdout).to include(
        "--help      Show help banner of specified command",
      )
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
boxes-3.7.0 spec/acceptance/user_views_help_spec.rb
boxes-3.6.1 spec/acceptance/user_views_help_spec.rb
boxes-3.6.0 spec/acceptance/user_views_help_spec.rb
boxes-3.5.0 spec/acceptance/user_views_help_spec.rb
boxes-3.4.0 spec/acceptance/user_views_help_spec.rb
boxes-3.3.1 spec/acceptance/user_views_help_spec.rb
boxes-3.3.0 spec/acceptance/user_views_help_spec.rb
boxes-3.2.0 spec/acceptance/user_views_help_spec.rb
boxes-3.1.0 spec/acceptance/user_views_help_spec.rb
boxes-3.0.0 spec/acceptance/user_views_help_spec.rb