Refactor some steps in cucumber scenarios

This commit is contained in:
Thibault Jouan
2015-04-28 08:37:04 +00:00
parent 66413b6ccb
commit 258812013b
3 changed files with 4 additions and 8 deletions

View File

@@ -13,19 +13,17 @@ Feature: `layout_*' action keywords
"""
Scenario: delegates messages matching `layout_*' to `layout_handle_*'
Given a run control file with:
Given uhwm is running with this run control file:
"""
key(:f) { layout_some_action :testing_some_action }
"""
And uhwm is running
When I press the alt+f keys
Then the output must contain ":testing_some_action"
Scenario: logs an error about unimplemented messages
Given a run control file with:
Given uhwm is running with this run control file:
"""
key(:f) { layout_unknown_action }
"""
And uhwm is running
When I press the alt+f keys
Then the output must match /layout.+no.+implem.+handle_unknown_action/i