[Jifty-commit] r1142 - in jifty/trunk: t/TestApp/t
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Fri Jun 2 13:24:27 EDT 2006
Author: jesse
Date: Fri Jun 2 13:24:26 2006
New Revision: 1142
Modified:
jifty/trunk/ (props changed)
jifty/trunk/t/TestApp/t/05-editactions-Cachable.t
jifty/trunk/t/TestApp/t/05-editactions-Record.t
Log:
r12090 at pinglin: jesse | 2006-06-02 13:23:34 -0400
* Cachability test cleanup
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 Fri Jun 2 13:24:26 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 domain.com' );
+my ($id) = $o->create( name => 'edituser', email => 'someone at example.com' );
ok($id, "User create returned success");
my $server = Jifty::Test->make_server;
@@ -31,13 +31,14 @@
my $mech = Jifty::Test::WWW::Mechanize->new();
# Test action to update
-$mech->get_ok("$URL/editform?J:A-updateuser=TestApp::Action::UpdateUser&J:A:F:F:F-id-updateuser=1&J:A:F-name-updateuser=edituser&J:A:F-email-updateuser=newemail", "Form submitted");
+$mech->get_ok($URL.'/editform?J:A-updateuser=TestApp::Action::UpdateUser&J:A:F:F:F-id-updateuser=1&J:A:F-name-updateuser=edituser&J:A:F-email-updateuser=newemail at example.com', "Form submitted");
undef $o;
$o = TestApp::Model::User->new(current_user => $system_user);
+$o->flush_cache;
$o->load($id);
ok($id, "Load returned success");
-is($o->email, 'newemail', "Email was updated by form");
+is($o->email, 'newemail at example.com', "Email was updated by form");
1;
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 Fri Jun 2 13:24:26 2006
@@ -21,7 +21,7 @@
# Create a user
my $o = TestApp::Model::User->new(current_user => $system_user);
-my ($id) = $o->create( name => 'edituser', email => 'someone at domain.com' );
+my ($id) = $o->create( name => 'edituser', email => 'someone at example.com' );
ok($id, "User create returned success");
my $server = Jifty::Test->make_server;
@@ -32,13 +32,13 @@
my $mech = Jifty::Test::WWW::Mechanize->new();
# Test action to update
-$mech->get_ok("$URL/editform?J:A-updateuser=TestApp::Action::UpdateUser&J:A:F:F:F-id-updateuser=1&J:A:F-name-updateuser=edituser&J:A:F-email-updateuser=newemail", "Form submitted");
+$mech->get_ok($URL.'/editform?J:A-updateuser=TestApp::Action::UpdateUser&J:A:F:F:F-id-updateuser=1&J:A:F-name-updateuser=edituser&J:A:F-email-updateuser=newemail at example.com', "Form submitted");
undef $o;
$o = TestApp::Model::User->new(current_user => $system_user);
$o->load($id);
ok($id, "Load returned success");
-is($o->email, 'newemail', "Email was updated by form");
+is($o->email, 'newemail at example.com', "Email was updated by form");
1;
More information about the Jifty-commit
mailing list