Sha256: 2820d5be94cbcc43899634ed9417fca06735abc0cca0909c5342d94c3954a1e2

Contents?: true

Size: 1.27 KB

Versions: 13

Compression:

Stored size: 1.27 KB

Contents

@no-clobber
Feature: vagrant-exec validations
  In order to avoid configuration mistakes for vagrant-exec commands
  As a user
  I should see proper validation errors

  Background:
    Given I write to "Vagrantfile" with:
      """
      Vagrant.configure('2') do |config|
        config.vm.box = 'vagrant_exec'
        config.exec.commands true, directory: nil, prepend: true, env: 0
      end
      """

  Scenario: raises error if command is not string or array of strings
    When I run `bundle exec vagrant up`
    Then the exit status should not be 0
    And the output should contain "Commands should be String or Array<String>, received: true"

  Scenario: raises error if directory is improperly set
    When I run `bundle exec vagrant up`
    Then the exit status should not be 0
    And the output should contain ":directory should be String, received: nil"

  Scenario: raises error if prepend is improperly set
    When I run `bundle exec vagrant up`
    Then the exit status should not be 0
    And the output should contain ":prepend should be String, received: true"

  Scenario: raises error if environment variables are improperly set
    When I run `bundle exec vagrant up`
    Then the exit status should not be 0
    And the output should contain ":env should be Hash, received: 0"

Version data entries

13 entries across 13 versions & 2 rubygems

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