Permalink
Browse files

remove bogus return() in test; test fallback for undefined runmode

  • Loading branch information...
1 parent fff40d0 commit 6ad747e4d1896ec24ffaeb517bcde173f4c1d974 @moritz committed Jun 27, 2010
Showing with 7 additions and 4 deletions.
  1. +7 −4 t/basic.t
View
11 t/basic.t
@@ -148,7 +148,7 @@ if 0 {
$.start-mode = 'default_mode';
$.mode-param = {
my $rm = %.query<go_to_mode>;
- return $rm eq 'undef_rm' ?? Any !! $rm;
+ $rm eq 'undef_rm' ?? Any !! $rm;
};
%.run-modes = (
subref_modeparam => { 'Hello World: subref_modeparam OK' },
@@ -174,11 +174,14 @@ if 0 {
CallbackRunMode.new(query => {go_to_mode => ''}),
rx{^'Content-Type: text/html'},
rx{'Hello World: default_mode OK'},
- :todo-body('empty string run mode fallback'),
'empty string as run mode triggers fallback to start_mode',
);
-
-
+ response-like(
+ CallbackRunMode.new(query => {go_to_mode => 'undef_rm'}),
+ rx{^'Content-Type: text/html'},
+ rx{'Hello World: default_mode OK'},
+ 'undefined run mode triggers fallback to start_mode',
+ );
}
done_testing;

0 comments on commit 6ad747e

Please sign in to comment.