features/vagrant-exec.feature in vagrant-exec-0.4.0 vs features/vagrant-exec.feature in vagrant-exec-0.4.1
- old
+ new
@@ -6,20 +6,17 @@
I want to use "vagrant exec" command
Background:
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
"""
+ And I run `bundle exec vagrant up`
Scenario Outline: shows help correctly
- Given I run `bundle exec vagrant up`
When I run `bundle exec vagrant exec <args>`
Then the output should contain "Usage: vagrant exec [options] <command>"
Examples:
| args |
| |
@@ -27,15 +24,14 @@
| --help |
| -h pwd |
| --help pwd -h |
Scenario Outline: passes command arguments correctly
- Given I run `bundle exec vagrant up`
- When I run `bundle exec vagrant exec <cmd>`
- Then SHH subprocess should execute command "cd /vagrant && <cmd>"
+ When I run `bundle exec vagrant exec <command>`
+ Then SHH subprocess should execute command "cd /vagrant && <command>"
Examples:
- | cmd |
- | cwd . |
- | cwd ~ |
- | cwd -h |
- | cwd --blah |
- | "cwd -h blah -v blah" |
+ | command |
+ | pwd . |
+ | pwd ~ |
+ | pwd -h |
+ | pwd --blah |
+ | 'pwd -h blah -v blah' |