Skip to content
This repository has been archived by the owner on Aug 28, 2023. It is now read-only.

Commit

Permalink
Fixing attribute name typo
Browse files Browse the repository at this point in the history
Also adding a test case
  • Loading branch information
hakamadare committed Jun 25, 2013
1 parent 7847971 commit f3bb3b2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Net/HTTP/Spore/Middleware/Format/Auto.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ extends 'Net::HTTP::Spore::Middleware::Format';

use Try::Tiny;

has seriliazer => (
has serializer => (
is => 'rw',
isa => HashRef [Object],
lazy => 1,
Expand Down
5 changes: 4 additions & 1 deletion t/spore-middleware/format-auto.t
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
use strict;
use warnings;
use Test::More;
use Test::Moose;

plan tests => 1;
plan tests => 2;

use JSON;

Expand Down Expand Up @@ -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');

0 comments on commit f3bb3b2

Please sign in to comment.