Skip to content

Commit

Permalink
fixed portability bug in monkey_patch tests (closes #730)
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jan 12, 2015
1 parent 0293931 commit c569fa7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes
Expand Up @@ -6,6 +6,7 @@
- Removed deprecated AUTOLOAD and pluck methods from Mojo::Collection.
- Removed deprecated AUTOLOAD and val methods from Mojo::DOM.
- Fixed JSON Pointer escaping bug.
- Fixed portability bug in monkey_patch tests.

5.72 2015-01-11
- Added EXPERIMENTAL support for case-insensitive attribute selectors like
Expand Down
3 changes: 2 additions & 1 deletion t/mojo/util.t
Expand Up @@ -417,7 +417,8 @@ is MojoMonkeyTest::yang(), 'yang', 'right result';

# monkey_patch (with name)
SKIP: {
skip 'Sub::Util required!', 2 unless eval { require Sub::Util; 1 };
skip 'Sub::Util required!', 2
unless eval { require Sub::Util; !!Sub::Util->can('set_subname') };
is Sub::Util::subname(MojoMonkeyTest->can('foo')), 'MojoMonkeyTest::foo',
'right name';
is Sub::Util::subname(MojoMonkeyTest->can('bar')), 'MojoMonkeyTest::bar',
Expand Down

0 comments on commit c569fa7

Please sign in to comment.