From 08fe5a6994346174975930869184233179a491fa Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Tue, 14 Apr 2015 05:13:35 +0000 Subject: [PATCH] Implement `key' run control keyword --- features/run_control/key.feature | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 features/run_control/key.feature diff --git a/features/run_control/key.feature b/features/run_control/key.feature new file mode 100644 index 0000000..842f1c8 --- /dev/null +++ b/features/run_control/key.feature @@ -0,0 +1,10 @@ +Feature: `key' run control keyword + + Scenario: defines code to run when given key is pressed + Given a run control file with: + """ + key(:f) { puts 'trigger f key code' } + """ + And uhwm is running + When I press the alt+f keys + Then the output must contain "trigger f key code"