features/vagrant-exec/directory.feature in vagrant-exec-0.4.0 vs features/vagrant-exec/directory.feature in vagrant-exec-0.4.1

- old
+ new

@@ -6,13 +6,10 @@ I should be able to specify it in Vagrantfile Scenario: uses /vagrant as default directory Given I write to "Vagrantfile" with: """ - $LOAD_PATH.unshift File.expand_path('../../../lib', __FILE__) - require 'vagrant-exec' - Vagrant.configure('2') do |config| config.vm.box = 'vagrant_exec' end """ Given I run `bundle exec vagrant up` @@ -21,13 +18,10 @@ And SHH subprocess should execute command "cd /vagrant && pwd" Scenario: can use custom directory for all commands Given I write to "Vagrantfile" with: """ - $LOAD_PATH.unshift File.expand_path('../../../lib', __FILE__) - require 'vagrant-exec' - Vagrant.configure('2') do |config| config.vm.box = 'vagrant_exec' config.exec.commands '*', directory: '/tmp' end """ @@ -37,12 +31,9 @@ And SHH subprocess should execute command "cd /tmp && pwd" Scenario: can use custom directory for specific commands Given I write to "Vagrantfile" with: """ - $LOAD_PATH.unshift File.expand_path('../../../lib', __FILE__) - require 'vagrant-exec' - Vagrant.configure('2') do |config| config.vm.box = 'vagrant_exec' config.exec.commands %w(pwd echo), directory: '/tmp' end """