Reorganize cucumber features

This commit is contained in:
Thibault Jouan 2015-04-15 03:23:27 +00:00
parent 71b88b29c3
commit 773db4c8eb
4 changed files with 10 additions and 6 deletions

View File

@ -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

View 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

View File

@ -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