Permalink
Browse files

fix test for X::Attribute::Undeclared

  • Loading branch information...
1 parent 3eb0231 commit 676366402438f2bb99bf815df4f9a43d76736664 @moritz moritz committed Feb 11, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 S32-exceptions/misc.t
View
@@ -39,7 +39,7 @@ sub throws_like($code, $ex_type, *%matcher) {
}
throws_like { Buf.new().Str }, X::Buf::AsStr, method => 'Str';
-throws_like 'class Foo { $!bar }', X::Attribute::Undeclared,
+throws_like 'my class Foo { method a() { $!bar } }', X::Attribute::Undeclared,
name => '$!bar', package-name => 'Foo';
throws_like 'sub f() { $^x }', X::Signature::Placeholder,
line => 1;

0 comments on commit 6763664

Please sign in to comment.