X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo%2FMouse.git;a=blobdiff_plain;f=t%2F020_attributes%2F034_bad_coerce.t;fp=t%2F020_attributes%2F034_bad_coerce.t;h=0000000000000000000000000000000000000000;hp=6df64defda99fb6caf176369ba208a66d2888e3c;hb=9864f0e4ba233c5f30ad6dc7c484ced43d883d27;hpb=8845df4dd6432e3164d078ade741409061adae9f diff --git a/t/020_attributes/034_bad_coerce.t b/t/020_attributes/034_bad_coerce.t deleted file mode 100644 index 6df64de..0000000 --- a/t/020_attributes/034_bad_coerce.t +++ /dev/null @@ -1,37 +0,0 @@ -use strict; -# This is automatically generated by author/import-moose-test.pl. -# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!! -use t::lib::MooseCompat; -use warnings; - -use Test::More; - -use Test::Requires { - 'Test::Output' => '0.01', # skip all if not installed -}; - -{ - package Foo; - - use Mouse; - - ::stderr_like{ has foo => ( - is => 'ro', - isa => 'Str', - coerce => 1, - ); - } - qr/\QYou cannot coerce an attribute (foo) unless its type (Str) has a coercion/, - 'Cannot coerce unless the type has a coercion'; - - ::stderr_like{ has bar => ( - is => 'ro', - isa => 'Str', - coerce => 1, - ); - } - qr/\QYou cannot coerce an attribute (bar) unless its type (Str) has a coercion/, - 'Cannot coerce unless the type has a coercion - different attribute'; -} - -done_testing;