Permalink
Browse files

fix module.t

  • Loading branch information...
1 parent ce55153 commit b4cac4f4a1f73601b64b7544a4e445929e8f14a1 @monken monken committed Oct 14, 2012
Showing with 6 additions and 1 deletion.
  1. +6 −1 t/controller/module.t
View
@@ -19,7 +19,12 @@ test_psgi app, sub {
'contains link to "this" version' );
my $latest = $res->content;
ok( $res = $cb->( GET $this ), "GET $this" );
- is($latest, $res->content, 'content of both urls is exactly the same');
+ my $tx2 = tx($res);
+ is(
+ $tx2->find_value( '//div[@id="content"]'),
+ $tx->find_value('//div[@id="content"]'),
+ 'content of both urls is exactly the same'
+ );
# get module with lc author
$this =~ s{(/module/.*?/)}{lc($1)}e; # lc author name

0 comments on commit b4cac4f

Please sign in to comment.