Sha256: 96b20a16596315c0bebae20e0917903f4a8f2510a4c7d8e3dd3e779977680094

Contents?: true

Size: 1.25 KB

Versions: 12

Compression:

Stored size: 1.25 KB

Contents

@no-clobber
Feature: vagrant-exec
  In order to execute commands in Vagrant box
  Within context of synced folder
  As a developer using vagrant-exec plugin
  I want to use "vagrant exec" command

  Background:
    Given I write to "Vagrantfile" with:
      """
      Vagrant.configure('2') do |config|
        config.vm.box = 'vagrant_exec'
      end
      """
    And I run `bundle exec vagrant up`

  Scenario Outline: shows help correctly
    When I run `bundle exec vagrant exec <args>`
    Then the output should contain:
      """
      Usage: vagrant exec [options] <command>

          -h, --help                       Print this help
              --binstubs                   Generate binstubs for configured commands
      """
    Examples:
      | args          |
      |               |
      | -h            |
      | --help        |
      | -h pwd        |
      | --help pwd -h |

  Scenario Outline: passes command arguments correctly
    When I run `bundle exec vagrant exec <command>`
    Then SHH subprocess should execute command "cd /vagrant && <command>"
    Examples:
      | command               |
      | pwd .                 |
      | pwd ~                 |
      | pwd -h                |
      | pwd --blah            |
      | 'pwd -h blah -v blah' |

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
vagrant-exec-0.5.3 features/vagrant-exec.feature
vagrant-exec-0.5.2 features/vagrant-exec.feature
vagrant-exec-0.5.1 features/vagrant-exec.feature
vagrant-environments-0.1.7 features/vagrant-exec.feature
vagrant-environments-0.1.6 features/vagrant-exec.feature
vagrant-environments-0.1.5 features/vagrant-exec.feature
vagrant-environments-0.1.4 features/vagrant-exec.feature
vagrant-environments-0.1.3 features/vagrant-exec.feature
vagrant-environments-0.1.2 features/vagrant-exec.feature
vagrant-environments-0.1.1 features/vagrant-exec.feature
vagrant-environments-0.1.0 features/vagrant-exec.feature
vagrant-exec-0.5.0 features/vagrant-exec.feature