reluctantlt move setup_trace before setup_plugins (we want it for use in plugins)
[catagits/Catalyst-Runtime.git] / t / custom_exception_class_simple.t
index e87ed80..27e4516 100644 (file)
@@ -1,18 +1,18 @@
-#!/usr/bin/env perl
-
 use strict;
 use warnings;
 use FindBin qw/$Bin/;
 use lib "$Bin/lib";
-use Test::More tests => 1;
-use Test::Exception;
-
-TODO: {
-    local $TODO = 'Does not work yet';
+use Test::More tests => 2;
+use Test::Fatal;
 
-lives_ok {
+is exception {
     require TestAppClassExceptionSimpleTest;
-} 'Can load application';
+}, undef, 'Can load application';
+
+
+is exception {
+    Catalyst::Exception->throw
+}, undef, 'throw is properly stubbed out';
+
 
-}