Fixed bug where if encoding was set in the config file it wasn't used,
[catagits/Catalyst-Runtime.git] / t / encoding_set_in_app.t
diff --git a/t/encoding_set_in_app.t b/t/encoding_set_in_app.t
new file mode 100644 (file)
index 0000000..976760a
--- /dev/null
@@ -0,0 +1,15 @@
+use strict;
+use warnings;
+
+use FindBin '$Bin';
+use lib "$Bin/lib";
+
+use Test::More;
+
+#for this test encoding => 'UTF-8' is set in TestAppEncodingSetInApp.pm
+use Catalyst::Test 'TestAppEncodingSetInApp';
+
+my ( undef, $c ) = ctx_request('/');
+isa_ok( $c->encoding,  'Encode::utf8', '$c->encoding' );
+
+done_testing;