Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: c31db8c7fe
Fetching contributors…

Cannot retrieve contributors at this time

26 lines (22 sloc) 0.579 kb
use t::Utils;
use Test::More;
use Kamui::Web::Context;
use Mock::Container;
use Mock::Web::Handler;
subtest 'uri_with' => sub {
my $env = +{
HTTP_HOST => 'example.com',
REQUEST_METHOD => 'GET',
SCRIPT_NAME => '/',
REQUEST_URI => '/',
QUERY_STRING => 'p=query',
};
my $c = Kamui::Web::Context->new(
env => $env,
conf => container('conf'),
app => 'Mock::Web::Handler',
);
is $c->uri_with({foo => 'bar'}), 'http://example.com/?p=query&foo=bar';
done_testing;
};
done_testing;
Jump to Line
Something went wrong with that request. Please try again.