Changeset 406 for veekun/trunk/t/shoutbox.t
- Timestamp:
- 02/08/08 02:44:39 (11 months ago)
- Files:
-
- 1 modified
-
veekun/trunk/t/shoutbox.t (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
veekun/trunk/t/shoutbox.t
r404 r406 21 21 my $posted_res = request( POST '/shoutbox/post' => { 22 22 name => 'Tester', 23 message=> 'Test message',23 content => 'Test message', 24 24 } ); 25 25 ok $posted_res->is_redirect, 'Shoutbox post results in redirect'; … … 31 31 ok defined $shout, 'Shoutbox table contains a shout'; 32 32 is $shout->name, 'Tester', 'Shout name is correct'; 33 is $shout-> message, 'Test message', 'Shout message is correct';34 ok !defined $shout->user id, 'Shout user is NULL';33 is $shout->content, 'Test message', 'Shout message is correct'; 34 ok !defined $shout->user_id, 'Shout user is NULL'; 35 35 ok abs($shout->time - time) < 3, 'Shout time is reasonably close to now'; 36 36
