Version 0.02
[blog.pm-common-perl-mods.git] / CatalystX-Dispatcher-LangDetect / t / live.t
blobdd771d1d073e395b44c238bcfe74df910938f075
1 use strict;
2 use warnings;
4 use Test::More;
6 BEGIN {
7     plan 'no_plan';
10 use lib 't/lib';
11 use Catalyst::Test qw/TestApp/;
13 is( get( '/' ), 'en', 'get ok' );
15 is( get( '/hallo' ), 'en', 'get ok' );
17 is( get( '/ru/hallo' ), 'ru', 'get ok' );
19 $ENV{'HTTP_ACCEPT_LANGUAGE'} = 'ru';
21 is( get( '/hallo' ), 'ru', 'get ok' );