Akron | 9490e3b | 2019-10-17 12:26:29 +0200 | [diff] [blame] | 1 | use Mojo::Base -strict; |
| 2 | use Test::More; |
| 3 | use Test::Mojo; |
| 4 | |
| 5 | # Test the documentation |
| 6 | |
| 7 | my $t = Test::Mojo->new('Kalamar'); |
| 8 | |
| 9 | my $app = $t->app; |
| 10 | |
| 11 | is($app->under_construction, '<p>Under Construction!</p>'); |
| 12 | |
| 13 | is($app->embedded_link_to('privacy', 'privacy'), '<a class="embedded-link" href="/doc/privacy">privacy</a>'); |
| 14 | is($app->embedded_link_to('privacy', 'korap', 'privacy'), '<a class="embedded-link" href="/doc/korap/privacy">privacy</a>'); |
| 15 | |
| 16 | |
| 17 | my $c = $app->build_controller; |
| 18 | $c->title('Example'); |
| 19 | is($c->page_title, '<h2 id="page-top">Example</h2>'); |
| 20 | |
| 21 | done_testing; |
| 22 | |
| 23 | 1; |