Skip to content

Commit

Permalink
Fix some tests of exceptions to check for the actual error message we…
Browse files Browse the repository at this point in the history
… care about

The test was checking for one word that appeared in the trace rather than the
specific error message we expect to be thrown.
  • Loading branch information
autarch committed Oct 22, 2014
1 parent 28dfff0 commit 091853c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion t/cmop/metaclass_reinitialize.t
Expand Up @@ -138,7 +138,7 @@ like( exception {
attribute_metaclass => 'Baz::Meta::Attribute',
method_metaclass => 'Baz::Meta::Method',
);
}, qr/compatible/ );
}, qr/\QAttribute (class_name) is required/ );

{
package Quuux::Meta::Attribute;
Expand Down
4 changes: 2 additions & 2 deletions t/metaclasses/reinitialize.t
Expand Up @@ -159,7 +159,7 @@ like( exception {
method_metaclass => 'Bar::Meta::Method',
attribute_metaclass => 'Bar::Meta::Attribute',
);
}, qr/compatible/ );
}, qr/\QAttribute (class_name) is required/ );

{
package Baz::Meta::Class;
Expand Down Expand Up @@ -222,7 +222,7 @@ like( exception {
method_metaclass => 'Baz::Meta::Method',
attribute_metaclass => 'Baz::Meta::Attribute',
);
}, qr/compatible/ );
}, qr/\QAttribute (class_name) is required/ );

{
package Quux;
Expand Down

0 comments on commit 091853c

Please sign in to comment.