summaryrefslogtreecommitdiff
path: root/rt/t/web/richtext-autohandler.t
blob: 56617b2fbdc1a3652e89e06ec69b49bf00aeabf2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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/,);