repo.or.cz
/
blog.pm-common-perl-mods.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Version 0.02
[blog.pm-common-perl-mods.git]
/
CatalystX-Dispatcher-LangDetect
/
t
/
live.t
blob
dd771d1d073e395b44c238bcfe74df910938f075
1
use strict;
2
use warnings;
3
4
use Test::More;
5
6
BEGIN {
7
plan 'no_plan';
8
}
9
10
use lib 't/lib';
11
use Catalyst::Test qw/TestApp/;
12
13
is( get( '/' ), 'en', 'get ok' );
14
15
is( get( '/hallo' ), 'en', 'get ok' );
16
17
is( get( '/ru/hallo' ), 'ru', 'get ok' );
18
19
$ENV{'HTTP_ACCEPT_LANGUAGE'} = 'ru';
20
21
is( get( '/hallo' ), 'ru', 'get ok' );