features/vagrant-exec/directory.feature in vagrant-exec-0.4.1 vs features/vagrant-exec/directory.feature in vagrant-exec-0.5.0
- old
+ new
@@ -10,16 +10,16 @@
"""
Vagrant.configure('2') do |config|
config.vm.box = 'vagrant_exec'
end
"""
- Given I run `bundle exec vagrant up`
+ 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 && pwd"
- Scenario: can use custom directory for all commands
+ Scenario: uses custom directory for all commands
Given I write to "Vagrantfile" with:
"""
Vagrant.configure('2') do |config|
config.vm.box = 'vagrant_exec'
config.exec.commands '*', directory: '/tmp'
@@ -28,10 +28,10 @@
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 /tmp && pwd"
- Scenario: can use custom directory for specific commands
+ Scenario: uses custom directory for specific commands
Given I write to "Vagrantfile" with:
"""
Vagrant.configure('2') do |config|
config.vm.box = 'vagrant_exec'
config.exec.commands %w(pwd echo), directory: '/tmp'