Clean up tests

* Remove deprecated tags;
* Improve scenarios, steps and specs descriptions.
This commit is contained in:
Thibault Jouan
2015-04-14 02:59:48 +00:00
parent bceeae01ac
commit e81cf3a52f
5 changed files with 8 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
Feature: quit action
Scenario: quits on keybing press
Scenario: quits on alt+q keys press
Given uhwm is running
When I press the default quit key binding
When I press the alt+q keys
Then uhwm should terminate successfully

View File

@@ -1,6 +1,6 @@
Feature: run control file path CLI option
Scenario: changes the path to run control file
Scenario: specifies run control file path
Given a file named uhwmrc.rb with:
"""
puts 'run control evaluation'

View File

@@ -1,7 +1,6 @@
@mocked_home_directory
Feature: run control file evaluation
Scenario: evaluates the default run control file when it exists
Scenario: evaluates the default run control file when present
Given a file named .uhwmrc.rb with:
"""
puts 'run control evaluation'

View File

@@ -1,5 +1,5 @@
When /^I press the default quit key binding$/ do
x_key 'alt+q'
When /^I press the ([^ ]+) keys?$/ do |keys|
x_key keys
end
Then /^it must connect to X display$/ do