From f3bb3b2bb4d03800338a2b6e343b49902c9a371c Mon Sep 17 00:00:00 2001 From: Steve Huff Date: Tue, 25 Jun 2013 11:28:13 -0400 Subject: Fixing attribute name typo Also adding a test case --- t/spore-middleware/format-auto.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 't/spore-middleware/format-auto.t') 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'); + -- cgit 1.4.1