Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasfranck committed Jun 27, 2018
1 parent 31374f7 commit 50861d5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions t/LibreCat/App/Helper.t
Original file line number Diff line number Diff line change
Expand Up @@ -239,12 +239,12 @@ ok exists $statistics->{projects}, '..projects';

is h->uri_base, 'http://localhost:5001', 'h->uri_base';

is h->uri_for, 'http://localhost:5001', 'h->uri_for()';
is h->uri_for(), 'http://localhost:5001?lang=en', 'h->uri_for()';

is h->uri_for('/foo'), 'http://localhost:5001/foo', 'h->uri_for(/foo)';
is h->uri_for('/foo'), 'http://localhost:5001/foo?lang=en', 'h->uri_for(/foo)';

is h->uri_for('/foo', {q => 'a', z => [1, 2], '' => ''}),
'http://localhost:5001/foo?q=a&z=1&z=2&%E6%88%91=%E8%83%BD',
'http://localhost:5001/foo?lang=en&q=a&z=1&z=2&%E6%88%91=%E8%83%BD',
'params with unicode characters encoded corectly by h->uri_for';

isa_ok h->get_file_store, 'Catmandu::Store::File::Simple',
Expand Down
4 changes: 2 additions & 2 deletions t/www/my_publication_list.t
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@ note("login");

note("my publication list");
{
$mech->follow_link_ok({url_regex => qr(/person/1234$), n => 1},
$mech->follow_link_ok({url_regex => qr(/person/1234\?lang=en$), n => 1},
'my publication list');

$mech->content_contains("/marked?person=1234", "found right page");
$mech->content_contains("/marked?lang=en&person=1234", "found right page");
}

done_testing;

0 comments on commit 50861d5

Please sign in to comment.