projects
/
catagits/Catalyst-Runtime.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Deprecate bare imports of Catalyst::Test - either use an app name or don't run the...
[catagits/Catalyst-Runtime.git]
/
t
/
aggregate
/
deprecated_test_import.t
diff --git a/t/aggregate/deprecated_test_import.t
b/t/aggregate/deprecated_test_import.t
new file mode 100644
(file)
index 0000000..
ee90eea
--- /dev/null
+++ b/
t/aggregate/deprecated_test_import.t
@@ -0,0
+1,16
@@
+use strict;
+use warnings;
+
+use Test::More;
+use Catalyst::Test ();
+
+my $warn;
+{
+ local $SIG{__WARN__} = sub { $warn = shift; };
+ Catalyst::Test->import();
+}
+ok $warn;
+like $warn, qr/deprecated/;
+
+done_testing;
+