Tutorial: rename korap to devlopment also internally
This has to be done in a separate second step because it's pretty error-prone.
Follow up to I05dbd6d938324151e5eb1cbe15a66790da13c63c
Change-Id: Ib0b7e546f2a9dd5c321516774cf95bab74c42962
diff --git a/t/doc.t b/t/doc.t
index 15ca9d0..b0f15c9 100644
--- a/t/doc.t
+++ b/t/doc.t
@@ -108,6 +108,18 @@
->text_is('#api-service-uri', 'https://korap.ids-mannheim.de/test/api/v1.0/');
+# Languages of dev pages
+$t->get_ok('/doc/development/kalamar')
+ ->status_is(200)
+ ->text_is("title", "KorAP: Kalamar")
+ ->content_like(qr!Main developer!);
+
+$t->get_ok('/doc/development/kalamar' => { 'Accept-Language' => 'de-DE, en-US, en' })
+ ->status_is(200)
+ ->text_is("title", "KorAP: Kalamar")
+ ->content_like(qr!Hauptentwickler!);
+
+
# Check mail_to_chiffre
like($t->app->mail_to_chiffre('korap@korap.example'),qr!rel="nofollow"!);
like($t->app->mail_to_chiffre('korap@korap.example'),qr!class="PArok"!);