Make doc navigation extensible
Change-Id: I6fffb2e33439d6c539d05bb65a3b81d4e2267f57
diff --git a/t/docembed.t b/t/docembed.t
new file mode 100644
index 0000000..24503f7
--- /dev/null
+++ b/t/docembed.t
@@ -0,0 +1,25 @@
+use Mojo::Base -strict;
+use Mojolicious::Lite;
+use Test::More;
+use Test::Mojo;
+use utf8;
+
+my $t = Test::Mojo->new('Kalamar' => {
+ Kalamar => {
+ api => 'xyz',
+ navi_ext => [
+ {
+ title => 'Privacy',
+ id => 'privacy'
+ }
+ ]
+ }
+});
+
+$t->get_ok('/doc')
+ ->text_is('nav > ul.nav > li.active a', 'KorAP')
+ ->text_is('nav > ul.nav > li:last-child a', 'Privacy')
+ ->element_exists('nav > ul.nav > li:last-child a[href=/doc/privacy#tutorial-top]')
+ ;
+
+done_testing;