[Jifty-commit] r479 - in jifty/trunk: t
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sat Jan 7 03:04:12 EST 2006
Author: kevinr
Date: Sat Jan 7 03:04:12 2006
New Revision: 479
Added:
jifty/trunk/t/02-connect.t
jifty/trunk/t/04-forms.t
Modified:
jifty/trunk/ (props changed)
jifty/trunk/MANIFEST
Log:
r10294 at sad-girl-in-snow: kevinr | 2006-01-07 02:03:19 -0600
* Started porting tests from $PROJECT to Jifty. These are almost straight
copy-and-paste, except to reference Jifty::Test (and, of course, to make sure
they all still passed :). If people care about ordering, they can feel free
to renumber the tests themselves -- it didn't look like it mattered to me.
Modified: jifty/trunk/MANIFEST
==============================================================================
--- jifty/trunk/MANIFEST (original)
+++ jifty/trunk/MANIFEST Sat Jan 7 03:04:12 2006
@@ -162,11 +162,13 @@
share/web/templates/__jifty/admin/fragments/list/update
share/web/templates/__jifty/admin/fragments/list/view
share/web/templates/__jifty/admin/index.html
+share/web/templates/__jifty/autocomplete.xml
share/web/templates/__jifty/error/dhandler
share/web/templates/__jifty/online_docs/autohandler
share/web/templates/__jifty/online_docs/content.html
share/web/templates/__jifty/online_docs/index.html
share/web/templates/__jifty/online_docs/toc.html
+share/web/templates/__jifty/validator.xml
share/web/templates/_elements/header
share/web/templates/_elements/javascript
share/web/templates/_elements/nav
@@ -180,8 +182,11 @@
share/web/templates/let/dhandler
share/web/templates/validator.xml
t/01-dependencies.t
+t/02-connect.t
t/02-form-protocol.t
t/03-sessions.t
+t/04-dispatcher.t
+t/04-forms.t
t/99-pod-coverage.t
t/99-pod.t
t/Continuations/bin/jifty
Added: jifty/trunk/t/02-connect.t
==============================================================================
--- (empty file)
+++ jifty/trunk/t/02-connect.t Sat Jan 7 03:04:12 2006
@@ -0,0 +1,14 @@
+#!/usr/bin/perl -w
+use strict;
+
+use Jifty::Test tests => 6;
+
+use_ok('Jifty');
+can_ok('Jifty', 'handle');
+
+isa_ok(Jifty->handle, "Jifty::DBI::Handle");
+isa_ok(Jifty->handle, "Jifty::DBI::Handle::".Jifty->config->framework('Database')->{'Driver'});
+
+can_ok(Jifty->handle->dbh, 'ping');
+ok(Jifty->handle->dbh->ping);
+
Added: jifty/trunk/t/04-forms.t
==============================================================================
--- (empty file)
+++ jifty/trunk/t/04-forms.t Sat Jan 7 03:04:12 2006
@@ -0,0 +1,24 @@
+use warnings;
+use strict;
+
+use Jifty::Test tests => 11;
+
+use_ok ('Jifty::Web::Form::Field');
+
+can_ok('Jifty::Web::Form::Field', 'new');
+can_ok('Jifty::Web::Form::Field', 'name');
+
+my $field = Jifty::Web::Form::Field->new();
+
+
+# Form::Fields don't work without a framework
+is($field->name, undef);
+ok($field->name('Jesse'));
+is($field->name, 'Jesse');
+
+is($field->class, '');
+is($field->class('basic'),'basic');
+is($field->class(),'basic');
+is($field->name, 'Jesse');
+
+is ($field->type, 'text', "type defaults to text");
More information about the Jifty-commit
mailing list