import rt 3.8.10
[freeside.git] / rt / t / web / richtext-autohandler.t
diff --git a/rt/t/web/richtext-autohandler.t b/rt/t/web/richtext-autohandler.t
new file mode 100644 (file)
index 0000000..56617b2
--- /dev/null
@@ -0,0 +1,13 @@
+use strict;
+
+use RT::Test tests => 7;
+my ($baseurl, $agent) = RT::Test->started_ok;
+
+$agent->get("$baseurl/NoAuth/RichText/FCKeditor/license.txt");
+is($agent->status, 403);
+$agent->content_lacks("It is not the purpose of this section to induce");
+
+$agent->get_ok("/NoAuth/RichText/license.txt");
+$agent->content_contains("It is not the purpose of this section to induce");
+
+$agent->warning_like(qr/Invalid request directly to the rich text editor/,);