Add demo server plugin
Change-Id: Ic2fbe8920397aeab176aba57b22d061f6697ff32
diff --git a/t/plugin/demo_server.t b/t/plugin/demo_server.t
new file mode 100644
index 0000000..1b2b524
--- /dev/null
+++ b/t/plugin/demo_server.t
@@ -0,0 +1,25 @@
+use Mojo::Base -strict;
+use Test::More;
+use Test::Mojo;
+
+# Test the documentation
+my $t = Test::Mojo->new('Kalamar' => {
+ Kalamar => {
+ plugins => ['DemoServer']
+ }
+});
+
+$t->get_ok('/demo/all.html')
+ ->status_is(200)
+ ->content_type_is('text/html;charset=UTF-8')
+ ->text_is('title', 'Complete Demo')
+ ;
+
+$t->get_ok('/demo/alldemo.js')
+ ->status_is(200)
+ ->content_type_is('application/javascript')
+ ->content_like(qr!'app/en'!)
+ ;
+
+done_testing;
+__END__