[Jifty-commit] r4078 - in jifty/trunk: t
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Tue Sep 11 13:38:43 EDT 2007
Author: sterling
Date: Tue Sep 11 13:38:43 2007
New Revision: 4078
Modified:
jifty/trunk/ (props changed)
jifty/trunk/t/01-test-web.t
Log:
r11939 at dynpc145: andrew | 2007-09-11 12:13:59 -0500
Clearing out old new_record_action() tests.
Modified: jifty/trunk/t/01-test-web.t
==============================================================================
--- jifty/trunk/t/01-test-web.t (original)
+++ jifty/trunk/t/01-test-web.t Tue Sep 11 13:38:43 2007
@@ -36,39 +36,3 @@
$web = Jifty::Test->web;
isa_ok( $web->request, "Jifty::Request::Subclass" );
isa_ok( $web->response, "Jifty::Response::Subclass" );
-
-# Testing new_record_action()
-{
- no warnings 'redefine';
-
- # Create a mock new_action()
- $orig_new_action = \&Jifty::Web::new_action;
- *Jifty::Web::new_action = sub {
- is($args{class}, $args{expected});
- };
-
- Jifty->web->new_record_action(
- model => 'Jifty::Model::ModelClass',
- expected => 'Jifty::Action::UpdateModelClass',
- );
-
- Jifty->web->new_record_action(
- model => 'Jifty::Model::ModelClass',
- record_action => 'Delete',
- expected => 'Jifty::Action::DeleteModelClass',
- );
-
- Jifty->web->new_record_action(
- model => 'TestApp::Model::Employee',
- expected => 'TestApp::Action::UpdateEmployee',
- );
-
- Jifty->web->new_record_action(
- model => 'TestApp::Model::Employee',
- record_action => 'Search',
- expected => 'TestApp::Action::SearchEmployee',
- );
-
- # Restore the original
- *Jifty::Web::new_action = $orig_new_action;
-}
More information about the Jifty-commit
mailing list