Show
Ignore:
Timestamp:
02/08/08 02:44:39 (11 months ago)
Author:
eevee
Message:

Database refactoring. Renamed columns and tables to be more consistent and more readable. (#58)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • veekun/trunk/t/shoutbox.t

    r404 r406  
    2121my $posted_res = request( POST '/shoutbox/post' => { 
    2222    name    => 'Tester', 
    23     message => 'Test message', 
     23    content => 'Test message', 
    2424} ); 
    2525ok $posted_res->is_redirect, 'Shoutbox post results in redirect'; 
     
    3131ok defined $shout, 'Shoutbox table contains a shout'; 
    3232is $shout->name, 'Tester', 'Shout name is correct'; 
    33 is $shout->message, 'Test message', 'Shout message is correct'; 
    34 ok !defined $shout->userid, 'Shout user is NULL'; 
     33is $shout->content, 'Test message', 'Shout message is correct'; 
     34ok !defined $shout->user_id, 'Shout user is NULL'; 
    3535ok abs($shout->time - time) < 3, 'Shout time is reasonably close to now'; 
    3636