Rename 800_shikabased/*.t to 001_mouse/8*.t (suggested by tokuhirom :)
[gitmo/Mouse.git] / t / 001_mouse / 809-overwrite-builtin-subtype.t
diff --git a/t/001_mouse/809-overwrite-builtin-subtype.t b/t/001_mouse/809-overwrite-builtin-subtype.t
new file mode 100644 (file)
index 0000000..ce8a996
--- /dev/null
@@ -0,0 +1,11 @@
+use strict;
+use warnings;
+use Test::More tests => 1;
+
+eval {
+    package Request;
+    use Mouse::Util::TypeConstraints;
+
+    type 'Int' => where { 1};
+};
+like $@, qr/The type constraint 'Int' has already been created in Mouse::Util::TypeConstraints and cannot be created again in Request/;