Skip to content

Commit

Permalink
added message_ok example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 15, 2013
1 parent decd0fd commit 0ee981b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Changes
Expand Up @@ -11,7 +11,7 @@
Test::Mojo.
- Improved documentation.
- Improved tests.
- Fixed support for multi byte entities in Mojo::Util.
- Fixed support for multi-character entities in Mojo::Util.

3.79 2013-01-13
- Fixed small domain detection bug in Mojo::UserAgent::CookieJar.
Expand Down
6 changes: 6 additions & 0 deletions lib/Test/Mojo.pm
Expand Up @@ -726,6 +726,12 @@ Check WebSocket message for similar match.
Wait for next WebSocket message to arrive.
# Wait for message and perform multiple tests on it
$t->websocket_ok('/time')
->message_ok
->message_like(qr/\d+/)
->message_unlike(qr/\w+/);
=head2 message_unlike
$t = $t->message_unlike({binary => qr/$bytes/});
Expand Down
2 changes: 1 addition & 1 deletion t/mojo/util.t
Expand Up @@ -115,7 +115,7 @@ is html_unescape('<foo>bar<baz>&"'),
is html_unescape('foo &CounterClockwiseContourIntegral; bar &sup1baz'),
"foo \x{2233} bar \x{00b9}baz", 'right html unescaped result';

# html_unescape (multi byte entity)
# html_unescape (multi-character entity)
is html_unescape(decode 'UTF-8', '∾̳'), "\x{223e}\x{0333}",
'right html unescaped result';

Expand Down

0 comments on commit 0ee981b

Please sign in to comment.