[Jifty-commit] r1064 - in wifty: trunk/t
jifty-commit at lists.jifty.org
jifty-commit at lists.jifty.org
Mon May 15 15:24:32 EDT 2006
Author: nelhage
Date: Mon May 15 15:24:30 2006
New Revision: 1064
Modified:
wifty/ (props changed)
wifty/trunk/t/01-models.t
Log:
r1441 at phanatique: nelhage | 2006-05-15 15:09:56 -0400
Commenting some tests
Modified: wifty/trunk/t/01-models.t
==============================================================================
--- wifty/trunk/t/01-models.t (original)
+++ wifty/trunk/t/01-models.t Mon May 15 15:24:30 2006
@@ -18,6 +18,7 @@
my $system_user = Wifty::CurrentUser->superuser;
+# Create a test user
my $user = Wifty::Model::User->new(current_user => $system_user);
$user->create(email => 'test at email', name => 'Test User');
ok($user, "Created a user model object");
@@ -25,12 +26,14 @@
my $current_user = Wifty::CurrentUser->new(id => $user->id);
ok($current_user, "Created a Wifty::CurrentUser");
+#Create a page and check it
my $page = Wifty::Model::Page->new(current_user => $current_user);
$page->create(name => "TestPage", content => "Test Content");
is($page->updated_by->id, $user->id, "Model::Page set updated_by correctly");
$page->set(content => "Second test");
+# Make sure the page is creating revisions
my $revs = Wifty::Model::RevisionCollection->new(current_user => $current_user);
$revs->limit(column => "page", value => $page->id);
More information about the Jifty-commit
mailing list