Ignore:
Timestamp:
01/16/09 10:56:35 (3 years ago)
Author:
SvenDowideit
Message:

Item727: fix unit test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/CommentPlugin/test/unit/CommentPlugin/CommentPluginTests.pm

    r1984 r1998  
    467467    # make sure it hasn't changed 
    468468    $text =~ s/^%META.*?\n//gm; 
     469    my $date = Foswiki::Time::formatTime(time(), '$day $mon $year'); 
    469470    $this->assert_str_equals(<<HERE, 
    470471before 
     
    473474This is the comment 
    474475 
    475 -- TemporaryCommentPluginTestsUsersWeb.WikiGuest - 15 Jan 2009 
     476-- TemporaryCommentPluginTestsUsersWeb.WikiGuest - $date 
    476477%COMMENT{type="above" cols="100" target="%INCLUDINGTOPIC%#LatestComment"}% 
    477478after 
     
    523524    # make sure it hasn't changed 
    524525    $text =~ s/^%META.*?\n//gm; 
     526    my $date = Foswiki::Time::formatTime(time(), '$day $mon $year'); 
    525527    $this->assert_str_equals(<<HERE, 
    526528before 
    527529%COMMENT{type="below" target="%INCLUDINGTOPIC%#LatestComment"}% 
    528    * This is the comment -- TemporaryCommentPluginTestsUsersWeb.WikiGuest - 15 Jan 2009 
     530   * This is the comment -- TemporaryCommentPluginTestsUsersWeb.WikiGuest - $date 
    529531after 
    530532HERE 
Note: See TracChangeset for help on using the changeset viewer.