Refactor cucumber tags and steps
Use @mocked_home_directory provided by aruba and remove our custom @fake_home tag.
This commit is contained in:
parent
f312e33062
commit
a3e75b0ac6
@ -14,7 +14,7 @@ Feature: SSH settings
|
|||||||
When I successfully execute the recipe
|
When I successfully execute the recipe
|
||||||
Then the output must contain my current login name
|
Then the output must contain my current login name
|
||||||
|
|
||||||
@fake_home
|
@mocked_home_directory
|
||||||
Scenario: uses configured SSH user name for a given host
|
Scenario: uses configured SSH user name for a given host
|
||||||
Given an SSH config with:
|
Given an SSH config with:
|
||||||
"""
|
"""
|
||||||
|
@ -26,11 +26,6 @@ Before('~@exec') do
|
|||||||
Aruba.process = Aruba::InProcess
|
Aruba.process = Aruba::InProcess
|
||||||
end
|
end
|
||||||
|
|
||||||
# Fake home directory for @fake_home tagged scenarios.
|
|
||||||
Before('@fake_home') do
|
|
||||||
ENV['HOME'] = File.expand_path(current_dir)
|
|
||||||
end
|
|
||||||
|
|
||||||
# Enable cucumber-sshd "fast" mode (persists sshd across scenarios), and
|
# Enable cucumber-sshd "fast" mode (persists sshd across scenarios), and
|
||||||
# register hooks for @sshd tagged scenarios.
|
# register hooks for @sshd tagged scenarios.
|
||||||
Before do
|
Before do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user