diff options
| author | Ivan Kohler <ivan@freeside.biz> | 2012-06-30 01:03:13 -0700 |
|---|---|---|
| committer | Ivan Kohler <ivan@freeside.biz> | 2012-06-30 01:03:13 -0700 |
| commit | f3c4966ed1f6ec3db7accd6dcdd3a5a3821d72a7 (patch) | |
| tree | e5e9a077260613e6117d4697dd2985abd9b03d34 /rt/t/web/html/delete-article-name-method.html | |
| parent | cf7cd8efc7095aadbdfb0cd8e7ea0e2e8b9e9085 (diff) | |
| parent | cd3eb95ed1f3dc3e04cfc2b3b405f75b3ab086da (diff) | |
merging RT 4.0.6
Diffstat (limited to 'rt/t/web/html/delete-article-name-method.html')
| -rw-r--r-- | rt/t/web/html/delete-article-name-method.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/rt/t/web/html/delete-article-name-method.html b/rt/t/web/html/delete-article-name-method.html new file mode 100644 index 000000000..27592c1d0 --- /dev/null +++ b/rt/t/web/html/delete-article-name-method.html @@ -0,0 +1,15 @@ +<%INIT> +# This is used by t/web/articles-links.t. Since we fork off a server +# under most test configurations, and we need a way to run code in the +# middle of the test script, we have to play at shenanigans to delete +# RT::Article's Name method. Other options were a Plack::Middleware that +# eval'd code given by paths like /__perl/(.+) (is scary), a signal +# handler (fails under apache), and only running articles-links.t for +# inline tests (fails under apache and standalone) + +delete $RT::Article::{Name}; + +</%INIT> + +<% RT::Article->can('Name') ? '{exists}' : '{deleted}' %> + |
