Test case and patch for RT #47937 - MYAPP_CONFIG_LOCAL_SUFFIX ignored w/ Catalyst...
[catagits/Catalyst-Plugin-ConfigLoader.git] / t / 30-catalyst_test_suffix.t
diff --git a/t/30-catalyst_test_suffix.t b/t/30-catalyst_test_suffix.t
new file mode 100644 (file)
index 0000000..02c9bd4
--- /dev/null
@@ -0,0 +1,16 @@
+use strict;
+use warnings;
+
+use FindBin;
+use lib "$FindBin::Bin/lib";
+
+use Test::More tests => 2;
+
+BEGIN {
+    $ENV{TESTAPP_CONFIG_LOCAL_SUFFIX} = 'test';
+}
+use Catalyst::Test 'TestApp';
+
+ok my ($res, $c) = ctx_request('/'), 'context object';
+
+is $c->get_config_local_suffix, 'test', 'RT #47937';