[Jifty-commit] r2870 - in jifty/branches/template-declare: .
lib/Jifty/Plugin/Authentication/Password/Model
t/TestApp-Plugin-PasswordAuth/t
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Wed Feb 28 15:02:11 EST 2007
Author: jesse
Date: Wed Feb 28 15:02:09 2007
New Revision: 2870
Modified:
jifty/branches/template-declare/ (props changed)
jifty/branches/template-declare/lib/Jifty/Plugin/Authentication/Password/Model/User.pm
jifty/branches/template-declare/t/TestApp-Plugin-PasswordAuth/lib/TestApp/Plugin/PasswordAuth/Model/User.pm
jifty/branches/template-declare/t/TestApp-Plugin-PasswordAuth/t/00-model-User.t
Log:
r48603 at pinglin: jesse | 2007-02-28 14:38:12 -0500
* Mixins can now export methods
Modified: jifty/branches/template-declare/lib/Jifty/Plugin/Authentication/Password/Model/User.pm
==============================================================================
--- jifty/branches/template-declare/lib/Jifty/Plugin/Authentication/Password/Model/User.pm (original)
+++ jifty/branches/template-declare/lib/Jifty/Plugin/Authentication/Password/Model/User.pm Wed Feb 28 15:02:09 2007
@@ -4,6 +4,11 @@
package Jifty::Plugin::Authentication::Password::Model::User;
use Jifty::DBI::Schema;
use base 'Jifty::DBI::Record::Plugin';
+
+use Digest::MD5 qw'';
+
+our @EXPORT = qw(password_is);
+
use Jifty::Plugin::Authentication::Password::Record schema {
Modified: jifty/branches/template-declare/t/TestApp-Plugin-PasswordAuth/lib/TestApp/Plugin/PasswordAuth/Model/User.pm
==============================================================================
--- jifty/branches/template-declare/t/TestApp-Plugin-PasswordAuth/lib/TestApp/Plugin/PasswordAuth/Model/User.pm (original)
+++ jifty/branches/template-declare/t/TestApp-Plugin-PasswordAuth/lib/TestApp/Plugin/PasswordAuth/Model/User.pm Wed Feb 28 15:02:09 2007
@@ -11,7 +11,7 @@
};
use Jifty::Plugin::User::Model::User;
-use Jifty::Plugin::Authentication::Password::Model::User;
+use Jifty::Plugin::Authentication::Password::Model::User 'password_is';
# Your model-specific methods go here.
Modified: jifty/branches/template-declare/t/TestApp-Plugin-PasswordAuth/t/00-model-User.t
==============================================================================
--- jifty/branches/template-declare/t/TestApp-Plugin-PasswordAuth/t/00-model-User.t (original)
+++ jifty/branches/template-declare/t/TestApp-Plugin-PasswordAuth/t/00-model-User.t Wed Feb 28 15:02:09 2007
@@ -7,6 +7,8 @@
A basic test harness for the User model.
=cut
+use lib 't/lib';
+use Jifty::SubTest;
use Jifty::Test tests => 10;
@@ -31,4 +33,4 @@
is($o->name, 'jesse');
ok(!$o->password, "Can't get the password");
can_ok($o,'set_password');
-is($o->__value('password'), 'secret');
+ok($o->password_is( 'secret'));
More information about the Jifty-commit
mailing list