mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00

The test for SSH connection name switching was faulty Improve the regexes used in the assertions
11 lines
385 B
Gherkin
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\)"
|