Rename 800_shikabased/*.t to 001_mouse/8*.t (suggested by tokuhirom :)
[gitmo/Mouse.git] / t / 800_shikabased / 005-class_type.t
diff --git a/t/800_shikabased/005-class_type.t b/t/800_shikabased/005-class_type.t
deleted file mode 100644 (file)
index 5b61762..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-use strict;
-use warnings;
-use Test::More tests => 4;
-{
-    package Response;
-    use Mouse;
-    use Mouse::Util::TypeConstraints;
-
-    require t::lib::ClassType_Foo;
-
-    # XXX: This below API is different from that of Moose.
-    # class_type() should be class_type 'ClassName';
-    #    class_type 'Headers' => { class => 't::lib::ClassType_Foo' };
-    # this should be subtype Headers => as 't::lib::ClassType_foo';
-    subtype 'Headers'
-        => as 't::lib::ClassType_Foo'
-    ;
-        
-    coerce 'Headers' =>
-        from 'HashRef' => via {
-            t::lib::ClassType_Foo->new(%{ $_ });
-        },
-    ;
-
-    has headers => (
-        is     => 'rw',
-        isa    => 'Headers',
-        coerce => 1,
-    );
-}
-
-my $res = Response->new(headers => { foo => 'bar' });
-isa_ok($res->headers, 't::lib::ClassType_Foo');
-is($res->headers->foo, 'bar');
-$res->headers({foo => 'yay'});
-isa_ok($res->headers, 't::lib::ClassType_Foo');
-is($res->headers->foo, 'yay');