From: Shawn M Moore Date: Fri, 27 Jun 2008 02:44:45 +0000 (+0000) Subject: Style changes :) X-Git-Tag: 0.19~277 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3652e8c0fbe7bb5140dbd4b9194a351a145df1a8;p=gitmo%2FMouse.git Style changes :) --- diff --git a/t/032-buildargs.t b/t/032-buildargs.t index 209adc0..4b286f3 100644 --- a/t/032-buildargs.t +++ b/t/032-buildargs.t @@ -3,9 +3,7 @@ use strict; use warnings; use Test::More tests => 3; -use lib 't/lib'; - -{ +do { package Foo; use Mouse; @@ -15,9 +13,9 @@ use lib 't/lib'; my ( $self, @args ) = @_; return { @args % 2 ? ( foo => @args ) : @args }; } -} +}; -is( Foo->new->foo, undef, "no value" ); -is( Foo->new("bar")->foo, "bar", "single arg" ); -is( Foo->new(foo => "bar")->foo, "bar", "twoargs" ); +is(Foo->new->foo, undef, "no value"); +is(Foo->new("bar")->foo, "bar", "single arg"); +is(Foo->new(foo => "bar")->foo, "bar", "twoargs");