features/vagrant-exec/environment_variables.feature in vagrant-exec-0.5.0 vs features/vagrant-exec/environment_variables.feature in vagrant-exec-0.5.1
- old
+ new
@@ -8,11 +8,11 @@
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 }
+ config.exec.commands '*', env: {'TEST1' => true, 'TEST2' => false}
end
"""
And I run `bundle exec vagrant up`
When I run `bundle exec vagrant exec pwd`
Then the exit status should be 0
@@ -22,11 +22,11 @@
Given I write to "Vagrantfile" with:
"""
Vagrant.configure('2') do |config|
config.vm.box = 'vagrant_exec'
config.exec.commands 'cmd', env: { 'TEST1' => 'yo' }
- config.exec.commands %w(pwd echo), env: { 'TEST2' => true, 'TEST3' => false }
+ config.exec.commands %w[pwd echo], env: {'TEST2' => true, 'TEST3' => false}
end
"""
And I run `bundle exec vagrant up`
When I run `bundle exec vagrant exec cmd`
Then SHH subprocess should execute command "cd /vagrant && export TEST1=yo && cmd"
@@ -40,13 +40,13 @@
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 }
- config.exec.commands 'pwd', env: { 'TEST2' => false }
- config.exec.commands %w(pwd echo), env: { 'TEST3' => false }
+ config.exec.commands '*', env: {'TEST1' => true}
+ config.exec.commands 'pwd', env: {'TEST2' => false}
+ config.exec.commands %w[pwd echo], env: {'TEST3' => false}
end
"""
And I run `bundle exec vagrant up`
When I run `bundle exec vagrant exec pwd`
Then SHH subprocess should execute command "cd /vagrant && export TEST1=true && export TEST2=false && export TEST3=false && pwd"
@@ -58,10 +58,10 @@
Scenario: wraps values with spaces to quotes
Given I write to "Vagrantfile" with:
"""
Vagrant.configure('2') do |config|
config.vm.box = 'vagrant_exec'
- config.exec.commands 'pwd', env: { 'TEST' => 'one two' }
+ config.exec.commands 'pwd', env: {'TEST' => 'one two'}
end
"""
And I run `bundle exec vagrant up`
When I run `bundle exec vagrant exec pwd`
Then SHH subprocess should execute command "cd /vagrant && export TEST="one two" && pwd"