From: Dave Rolsky Date: Sat, 11 Feb 2012 20:51:06 +0000 (-0600) Subject: Fix tests for moose sugar extending recipe so they pass X-Git-Tag: 2.0500~55 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=316475ed00056e00db0c12bf79ee189035055eef;p=gitmo%2FMoose.git Fix tests for moose sugar extending recipe so they pass --- diff --git a/lib/Moose/Cookbook/Extending/Mooseish_MooseSugar.pod b/lib/Moose/Cookbook/Extending/Mooseish_MooseSugar.pod index 5af9886..be3e6a0 100644 --- a/lib/Moose/Cookbook/Extending/Mooseish_MooseSugar.pod +++ b/lib/Moose/Cookbook/Extending/Mooseish_MooseSugar.pod @@ -78,6 +78,7 @@ Moose-ish. See L for a more extensive example. { package MyApp::User; + use Moose; MyApp::Mooseish->import; has_table( 'User' ); @@ -88,7 +89,7 @@ Moose-ish. See L for a more extensive example. sub login { } } -isa_ok( MyApp::User->meta, 'MyApp::Meta::Class' ); +can_ok( MyApp::User->meta, 'table' ); is( MyApp::User->meta->table, 'User', 'MyApp::User->meta->table returns User' ); ok( MyApp::User->can('username'),