Reorganize cucumber features
This commit is contained in:
parent
71b88b29c3
commit
773db4c8eb
@ -1,6 +0,0 @@
|
|||||||
Feature: quit action
|
|
||||||
|
|
||||||
Scenario: quits on alt+q keys press
|
|
||||||
Given uhwm is running
|
|
||||||
When I press the alt+q keys
|
|
||||||
Then uhwm should terminate successfully
|
|
6
features/session/termination.feature
Normal file
6
features/session/termination.feature
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
Feature: program termination
|
||||||
|
|
||||||
|
Scenario: terminates when requested to quit
|
||||||
|
Given uhwm is running
|
||||||
|
When I tell uhwm to quit
|
||||||
|
Then uhwm should terminate successfully
|
@ -19,6 +19,10 @@ When /^I run uhwm with options? (-.+)$/ do |options|
|
|||||||
uhwm_run options
|
uhwm_run options
|
||||||
end
|
end
|
||||||
|
|
||||||
|
When /^I tell uhwm to quit$/ do
|
||||||
|
x_key 'alt+q'
|
||||||
|
end
|
||||||
|
|
||||||
Then /^the exit status must be (\d+)$/ do |exit_status|
|
Then /^the exit status must be (\d+)$/ do |exit_status|
|
||||||
assert_exit_status exit_status.to_i
|
assert_exit_status exit_status.to_i
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user