From 7ae814b74181a383bdae0e48e49179acaa8d5357 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 26 Apr 2011 10:09:03 -0500 Subject: fix test for moose error message changes --- t/30-type-checks.t | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/t/30-type-checks.t b/t/30-type-checks.t index b7718ac..0641d98 100644 --- a/t/30-type-checks.t +++ b/t/30-type-checks.t @@ -19,7 +19,7 @@ use Test::Moose; has bar => ( is => 'ro', isa => 'Str', - block => sub { {} }, + block => sub { { foo => 'bar' } }, ); has baz => ( @@ -33,13 +33,13 @@ use Test::Moose; with_immutable { my $foo = Foo->new; like(exception { $foo->foo }, - qr/^Attribute \(foo\) does not pass the type constraint because: Validation failed for 'Ref' with value FOO/, + qr/^Attribute \(foo\) does not pass the type constraint because: Validation failed for 'Ref' with value .*FOO/, "error when service returns invalid value"); like(exception { $foo->bar }, - qr/^Attribute \(bar\) does not pass the type constraint because: Validation failed for 'Str' with value HASH/, + qr/^Attribute \(bar\) does not pass the type constraint because: Validation failed for 'Str' with value .*(?:HASH|foo.*bar)/, "error when service returns invalid value"); like(exception { $foo->baz }, - qr/^Attribute \(bar\) does not pass the type constraint because: Validation failed for 'Str' with value HASH/, + qr/^Attribute \(bar\) does not pass the type constraint because: Validation failed for 'Str' with value .*(?:HASH|foo.*bar)/, "error when service returns invalid value, even as a dependency"); } 'Foo'; -- cgit v1.2.3-54-g00ecf From 04a2919f676edbeb14ce39ea79aacd247c7e8390 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 26 Apr 2011 10:10:27 -0500 Subject: changelog --- Changes | 1 + 1 file changed, 1 insertion(+) diff --git a/Changes b/Changes index 0983e99..4ed2ded 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,7 @@ Revision history for Bread-Board-Declare {{$NEXT}} + - fix test suite for upcoming moose error message changes 0.06 2011-04-02 - set the 'class' attribute on block services, so that circular -- cgit v1.2.3-54-g00ecf From 4c1206bd959446cc8ae6431a4dcf95208e6bc576 Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Tue, 26 Apr 2011 10:12:58 -0500 Subject: changelog --- Changes | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Changes b/Changes index 4ed2ded..89291bc 100644 --- a/Changes +++ b/Changes @@ -1,6 +1,8 @@ Revision history for Bread-Board-Declare {{$NEXT}} + +0.07 2011-04-26 - fix test suite for upcoming moose error message changes 0.06 2011-04-02 -- cgit v1.2.3-54-g00ecf