fixed 12, 50% on 13/14 - 15 converted, but not working.
[catagits/Catalyst-Runtime.git] / t / 15connection.t
CommitLineData
75c0bfcf 1package TestApp;
2
e05c5e3c 3use Catalyst qw[-Engine=Test];
75c0bfcf 4
a8ed7612 5sub hostname : Global {
6 my ( $self, $c ) = @_;
7 $c->res->output( $c->req->hostname );
8}
9sub address : Global {
10 my ( $self, $c ) = @_;
11 $c->res->output( $c->req->address );
12}
75c0bfcf 13
14package main;
15
16use Test::More tests => 2;
17use Catalyst::Test 'TestApp';
18
19ok( get('/hostname') eq 'localhost' );
20ok( get('/address') eq '127.0.0.1' );