Fix tests, add autobox to flatten interface roles so you can use a string or array...
[catagits/CatalystX-DynamicComponent.git] / t / 08_types_in_model.t
diff --git a/t/08_types_in_model.t b/t/08_types_in_model.t
deleted file mode 100644 (file)
index 1b3aadb..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-use strict;
-use warnings;
-
-use FindBin qw/$Bin/;
-use lib "$Bin/lib";
-
-use Test::More tests => 6;
-use Test::Exception;
-
-use SomeModelClass;
-my $i = SomeModelClass->new;
-
-throws_ok { $i->say_hello(); } qr/Validation failed/;
-throws_ok { $i->say_hello({}); } qr/Validation failed/;
-throws_ok { $i->say_hello({name => 'Fred'}); } qr/Validation failed/;
-my $r;
-lives_ok { $r = $i->say_hello({type => 'say_hello', name => 'Fred'}); };
-ok $r;
-is_deeply($r, { type => 'say_hello_response', body => "Hello Fred" });
-