updated pod + tests
[catagits/Catalyst-Plugin-ConfigLoader.git] / t / 52-json.t
diff --git a/t/52-json.t b/t/52-json.t
new file mode 100644 (file)
index 0000000..2481d05
--- /dev/null
@@ -0,0 +1,11 @@
+use Test::More tests => 2;\r
+\r
+use Catalyst::Plugin::ConfigLoader::JSON;\r
+\r
+my $config = eval { Catalyst::Plugin::ConfigLoader::JSON->load( 't/conf/conf.json' ) };\r
+\r
+SKIP: {\r
+    skip "Couldn't Load JSON plugin", 2 if $@;\r
+    ok( $config );\r
+    is( $config->{ name }, 'TestApp' );\r
+}\r