From c394fee2a6a5a9c4583973f43673888d157f1d60 Mon Sep 17 00:00:00 2001 From: Thibault Jouan Date: Tue, 28 Apr 2015 09:31:40 +0000 Subject: [PATCH] Improve cli layout test expectations (UAT) --- features/cli/layout.feature | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/features/cli/layout.feature b/features/cli/layout.feature index 162b5ba..8ddd61d 100644 --- a/features/cli/layout.feature +++ b/features/cli/layout.feature @@ -4,12 +4,14 @@ Feature: layout CLI option Given a file named layout.rb with: """ class MyLayout - def register _; end + def register *_ + puts 'testing_cli_layout' + end end """ - When I run uhwm with option -v -r./layout -l MyLayout - Then the output must match /layout.+mylayout/i + When I run uhwm with options -r./layout -l MyLayout + Then the output must contain "testing_cli_layout" Scenario: resolves layout class from the root namespace - When I run uhwm with option -v -l Layout + When I run uhwm with option -l Layout Then the output must contain "uninitialized constant Layout"