[Moose-commits] r7168 - in Mouse/trunk: . t/800_shikabased
sartak at code2.0beta.co.uk
sartak at code2.0beta.co.uk
Mon Dec 22 04:26:32 GMT 2008
Author: sartak
Date: 2008-12-21 20:26:31 -0800 (Sun, 21 Dec 2008)
New Revision: 7168
Modified:
Mouse/trunk/
Mouse/trunk/t/800_shikabased/010-isa-or.t
Log:
r77782 at onn: sartak | 2008-12-21 23:26:15 -0500
Better test here; check the error message
Property changes on: Mouse/trunk
___________________________________________________________________
Name: svk:merge
- 08e7d58d-de06-4458-8c15-335e402ab116:/local/Mouse:77781
08e7d58d-de06-4458-8c15-335e402ab116:/local/Mouse-trunk:61565
3efe9002-19ed-0310-8735-a98156148065:/Mouse/branches/shika-based:6997
+ 08e7d58d-de06-4458-8c15-335e402ab116:/local/Mouse:77782
08e7d58d-de06-4458-8c15-335e402ab116:/local/Mouse-trunk:61565
3efe9002-19ed-0310-8735-a98156148065:/Mouse/branches/shika-based:6997
Modified: Mouse/trunk/t/800_shikabased/010-isa-or.t
===================================================================
--- Mouse/trunk/t/800_shikabased/010-isa-or.t 2008-12-22 04:26:23 UTC (rev 7167)
+++ Mouse/trunk/t/800_shikabased/010-isa-or.t 2008-12-22 04:26:31 UTC (rev 7168)
@@ -14,7 +14,7 @@
eval {
Foo->new( bar => +{} );
};
-ok $@, 'not got an object';
+like($@, qr/^Attribute \(bar\) does not pass the type constraint because: Validation failed for 'Str\|Baz\|Undef' failed with value HASH\(\w+\)/, 'type constraint and coercion failed');
eval {
isa_ok(Foo->new( bar => undef ), 'Foo');
More information about the Moose-commits
mailing list