1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00
capistrano/features/sshconnect.feature
Nick Townsend 263295c423 Improve Cucumber tests
The test for SSH connection name switching was faulty
Improve the regexes used in the assertions
2015-02-14 11:32:45 -08:00

11 lines
385 B
Gherkin

Feature: SSH Connection
Background:
Given a test app with the default configuration
And servers with the roles app and web
And a task which executes as root
Scenario: Switching from default user to root and back again
When I run cap "am_i_root"
Then the task is successful
And the output matches "I am uid=0\(root\)" followed by "I am uid=\d+\(vagrant\)"