summaryrefslogtreecommitdiffstats
path: root/t/01-basic.t
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2011-01-07 16:43:29 -0600
committerJesse Luehrs <doy@tozt.net>2011-01-07 16:47:45 -0600
commit459dd0062bfc3ff82ee10a01e7dbb34ae003ce21 (patch)
treed997873c67e1c0c4ec001904e4ea18727951ba7c /t/01-basic.t
parent6cf2b2c70509a7a0c92239af5d0978140f9ec674 (diff)
downloadplack-client-459dd0062bfc3ff82ee10a01e7dbb34ae003ce21.tar.gz
plack-client-459dd0062bfc3ff82ee10a01e7dbb34ae003ce21.zip
factor out scheme handling into separate backends
docs still need updating
Diffstat (limited to 't/01-basic.t')
-rw-r--r--t/01-basic.t5
1 files changed, 1 insertions, 4 deletions
diff --git a/t/01-basic.t b/t/01-basic.t
index 0be56ac..6e185b4 100644
--- a/t/01-basic.t
+++ b/t/01-basic.t
@@ -35,11 +35,8 @@ test_tcp_plackup(
]
},
};
- my $client = Plack::Client->new(apps => $apps);
+ my $client = Plack::Client->new('psgi-local' => {apps => $apps});
isa_ok($client, 'Plack::Client');
- is($client->apps, $apps, "got apps back");
- is($client->app_for('foo'), $apps->{foo}, "got the right app");
- is($client->app_for('bar'), undef, "didn't get nonexistent app");
{
my $res = $client->get('psgi-local://foo/');