use strict;
use warnings;
-use Test::More tests => 26;
+use Test::More tests => 25;
use Test::Exception;
-BEGIN {
- use_ok('Moose');
-}
+
{
package HTTPHeader;
coerce 'HTTPHeader'
=> from ArrayRef
- => via { HTTPHeader->new(array => $_[0]) }
+ => via { HTTPHeader->new(array => $_[0]) };
+
+ coerce 'HTTPHeader'
=> from HashRef
=> via { HTTPHeader->new(hash => $_[0]) };