fix for get_config_path also
[catagits/Catalyst-Plugin-ConfigLoader.git] / t / 22-suffix_env.t
diff --git a/t/22-suffix_env.t b/t/22-suffix_env.t
new file mode 100644 (file)
index 0000000..3d47bd6
--- /dev/null
@@ -0,0 +1,16 @@
+use strict;
+use warnings;
+
+use FindBin;
+use lib "$FindBin::Bin/lib";
+
+use Test::More tests => 3;
+
+BEGIN {
+    $ENV{ TESTAPP_CONFIG_LOCAL_SUFFIX } = 'test';
+    use_ok 'Catalyst::Test', 'TestApp';
+}
+
+ok my ( $res, $c ) = ctx_request( '/' ), 'context object';
+
+is $c->get_config_local_suffix, 'test', 'suffix is "test"';