Skip to content

Commit

Permalink
Make test less specific
Browse files Browse the repository at this point in the history
It was breaking because the number of suggestions changed.
  • Loading branch information
lizmat committed Aug 19, 2020
1 parent 30c4b6e commit bb7c617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion t/05-messages/01-errors.t
Expand Up @@ -222,7 +222,7 @@ throws-like { Blob.splice }, X::Multi::NoMatch,
'a public method of the same name as the missing private method is suggested';
throws-like q| class RT123078_3 { method !bar { }; method baz { } }; RT123078_3.new.bar |,
X::Method::NotFound,
message => all(/<<"No such method 'bar'" \W/, /<<'RT123078_3'>>/, /\s+ Did \s+ you \s+ mean \s+ "'baz'"/),
message => all(/<<"No such method 'bar'" \W/, /<<'RT123078_3'>>/, /\s+ Did \s+ you \s+ mean/),
'a private method of the same name as the public missing method is not suggested for out-of-class call';
throws-like q| <a a b>.uniq |,
X::Method::NotFound,
Expand Down

0 comments on commit bb7c617

Please sign in to comment.