[Jifty-commit] r1944 - in jifty/trunk: t/TestApp/t
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Sat Sep 9 18:03:03 EDT 2006
Author: jpeacock
Date: Sat Sep 9 18:02:53 2006
New Revision: 1944
Modified:
jifty/trunk/ (props changed)
jifty/trunk/t/TestApp/t/00-model-User.t
jifty/trunk/t/TestApp/t/05-editactions-Cachable.t
jifty/trunk/t/TestApp/t/05-editactions-Record.t
jifty/trunk/t/TestApp/t/11-current_user.t
Log:
r1593 at dsl092-168-024: jpeacock | 2006-09-09 18:01:36 -0400
password is a required field in the schema, so update TestApp testfiles.
All tests pass now (though there are still some WARN's to clean up).
Modified: jifty/trunk/t/TestApp/t/00-model-User.t
==============================================================================
--- jifty/trunk/t/TestApp/t/00-model-User.t (original)
+++ jifty/trunk/t/TestApp/t/00-model-User.t Sat Sep 9 18:02:53 2006
@@ -21,14 +21,14 @@
# Try testing a create
my $o = TestApp::Model::User->new(current_user => $system_user);
-my ($id) = $o->create( name => $$, email => $$ );
+my ($id) = $o->create( name => $$, email => $$, password => $$ );
ok($id, "User create returned success");
ok($o->id, "New User has valid id set");
is($o->id, $id, "Create returned the right id");
is($o->name, $$, "Created object has the right name");
# And another
-$o->create( name => $$, email => $$ );
+$o->create( name => $$, email => $$, password => $$ );
ok($o->id, "User create returned another value");
isnt($o->id, $id, "And it is different from the previous one");
Modified: jifty/trunk/t/TestApp/t/05-editactions-Cachable.t
==============================================================================
--- jifty/trunk/t/TestApp/t/05-editactions-Cachable.t (original)
+++ jifty/trunk/t/TestApp/t/05-editactions-Cachable.t Sat Sep 9 18:02:53 2006
@@ -19,7 +19,8 @@
# Create a user
my $o = TestApp::Model::User->new(current_user => $system_user);
-my ($id) = $o->create( name => 'edituser', email => 'someone at example.com' );
+my ($id) = $o->create( name => 'edituser', email => 'someone at example.com',
+ password => 'secret');
ok($id, "User create returned success");
my $server = Jifty::Test->make_server;
Modified: jifty/trunk/t/TestApp/t/05-editactions-Record.t
==============================================================================
--- jifty/trunk/t/TestApp/t/05-editactions-Record.t (original)
+++ jifty/trunk/t/TestApp/t/05-editactions-Record.t Sat Sep 9 18:02:53 2006
@@ -20,7 +20,7 @@
# Create a user
my $o = TestApp::Model::User->new(current_user => $system_user);
my ($id) = $o->create( name => 'edituser', email => 'someone at example.com',
- tasty => 1 );
+ password => 'secret', tasty => 1 );
ok($id, "User create returned success");
is($o->tasty, 1, "User is tasty");
Modified: jifty/trunk/t/TestApp/t/11-current_user.t
==============================================================================
--- jifty/trunk/t/TestApp/t/11-current_user.t (original)
+++ jifty/trunk/t/TestApp/t/11-current_user.t Sat Sep 9 18:02:53 2006
@@ -23,10 +23,12 @@
# Create two users
my $o = TestApp::Model::User->new(current_user => $system_user);
-$o->create( name => 'A User', email => 'auser at example.com', tasty => 0 );
+$o->create( name => 'A User', email => 'auser at example.com',
+ password => 'secret', tasty => 0 );
ok($o->id, "New user has valid id set");
ok(!$o->tasty, "User is not tasty");
-$o->create( name => 'Bob', email => 'bob at example.com', tasty => 1 );
+$o->create( name => 'Bob', email => 'bob at example.com',
+ password => 'secret2', tasty => 1 );
ok($o->id, "New user has valid id set");
ok($o->tasty, "User is tasty");
More information about the Jifty-commit
mailing list