features/vagrant-exec/environment_variables.feature in vagrant-exec-0.4.1 vs features/vagrant-exec/environment_variables.feature in vagrant-exec-0.5.0

- old
+ new

@@ -3,11 +3,11 @@ In order to automatically set environment variables For commands I execute using vagrant-exec As a user I should be able to specify them in Vagrantfile - Scenario: can export environment variables for all commands + Scenario: exports environment variables for all commands Given I write to "Vagrantfile" with: """ Vagrant.configure('2') do |config| config.vm.box = 'vagrant_exec' config.exec.commands '*', env: { 'TEST1' => true, 'TEST2' => false } @@ -16,11 +16,11 @@ And I run `bundle exec vagrant up` When I run `bundle exec vagrant exec pwd` Then the exit status should be 0 And SHH subprocess should execute command "cd /vagrant && export TEST1=true && export TEST2=false && pwd" - Scenario: can export environment variables for specific commands + Scenario: exports environment variables for specific commands Given I write to "Vagrantfile" with: """ Vagrant.configure('2') do |config| config.vm.box = 'vagrant_exec' config.exec.commands 'cmd', env: { 'TEST1' => 'yo' } @@ -35,10 +35,10 @@ When I run `bundle exec vagrant exec echo 1` Then SHH subprocess should execute command "cd /vagrant && export TEST2=true && export TEST3=false && echo 1" When I run `bundle exec vagrant exec env` Then SHH subprocess should execute command "cd /vagrant && env" - Scenario: can combine environment variables + Scenario: combines environment variables Given I write to "Vagrantfile" with: """ Vagrant.configure('2') do |config| config.vm.box = 'vagrant_exec' config.exec.commands '*', env: { 'TEST1' => true }