[Jifty-commit] r1644 - in jifty/trunk: t
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Fri Jul 21 16:43:46 EDT 2006
Author: zev
Date: Fri Jul 21 16:43:46 2006
New Revision: 1644
Modified:
jifty/trunk/ (props changed)
jifty/trunk/t/09-url.t
Log:
r11822 at truegrounds: zev | 2006-07-21 16:43:41 -0400
* added url test
Modified: jifty/trunk/t/09-url.t
==============================================================================
--- jifty/trunk/t/09-url.t (original)
+++ jifty/trunk/t/09-url.t Fri Jul 21 16:43:46 2006
@@ -9,11 +9,12 @@
=cut
-use Jifty::Test tests => 4;
+use Jifty::Test tests => 5;
like(Jifty->web->url, qr{^http://localhost:\d+/$}, 'basic call works');
like(Jifty->web->url(path => 'foo/bar'), qr{^http://localhost:\d+/foo/bar$}, 'path works');
-
+like(Jifty->web->url(path => '/foo/bar'), qr{^http://localhost:\d+/foo/bar$}, 'path with leading slash works');
+
$ENV{HTTP_HOST} = 'example.com';
is(Jifty->web->url, 'http://example.com/', 'setting hostname via env works');
More information about the Jifty-commit
mailing list