summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Huff <shuff@vecna.org>2013-06-25 11:28:13 -0400
committerSteve Huff <shuff@vecna.org>2013-06-25 11:28:13 -0400
commitf3bb3b2bb4d03800338a2b6e343b49902c9a371c (patch)
treece40636935f97f7681c4ccf4c05f8f843cb17203
parentv0.06 (diff)
downloadnet-http-spore-f3bb3b2bb4d03800338a2b6e343b49902c9a371c.tar.gz
Fixing attribute name typo
Also adding a test case
-rw-r--r--lib/Net/HTTP/Spore/Middleware/Format/Auto.pm2
-rw-r--r--t/spore-middleware/format-auto.t5
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/Net/HTTP/Spore/Middleware/Format/Auto.pm b/lib/Net/HTTP/Spore/Middleware/Format/Auto.pm
index 0bc1eb0..ebdc2d7 100644
--- a/lib/Net/HTTP/Spore/Middleware/Format/Auto.pm
+++ b/lib/Net/HTTP/Spore/Middleware/Format/Auto.pm
@@ -6,7 +6,7 @@ extends 'Net::HTTP::Spore::Middleware::Format';
 
 use Try::Tiny;
 
-has seriliazer => (
+has serializer => (
     is      => 'rw',
     isa     => HashRef [Object],
     lazy    => 1,
diff --git a/t/spore-middleware/format-auto.t b/t/spore-middleware/format-auto.t
index 857d65d..0dbe54c 100644
--- a/t/spore-middleware/format-auto.t
+++ b/t/spore-middleware/format-auto.t
@@ -1,8 +1,9 @@
 use strict;
 use warnings;
 use Test::More;
+use Test::Moose;
 
-plan tests => 1;
+plan tests => 2;
 
 use JSON;
 
@@ -36,3 +37,5 @@ ok my $client = Net::HTTP::Spore->new_from_string( JSON::encode_json($api) );
 $client->enable('Format::Auto');
 $client->enable( 'Mock', tests => $mock_server );
 
+has_attribute_ok('Net::HTTP::Spore::Middleware::Format::Auto', 'serializer','has the serializer attribute');
+