projects
/
gitmo/Moose.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
2349e3c
)
Fix tests for moose sugar extending recipe so they pass
Dave Rolsky [Sat, 11 Feb 2012 20:51:06 +0000 (14:51 -0600)]
lib/Moose/Cookbook/Extending/Mooseish_MooseSugar.pod
patch
|
blob
|
blame
|
history
diff --git
a/lib/Moose/Cookbook/Extending/Mooseish_MooseSugar.pod
b/lib/Moose/Cookbook/Extending/Mooseish_MooseSugar.pod
index
5af9886
..
be3e6a0
100644
(file)
--- a/
lib/Moose/Cookbook/Extending/Mooseish_MooseSugar.pod
+++ b/
lib/Moose/Cookbook/Extending/Mooseish_MooseSugar.pod
@@
-78,6
+78,7
@@
Moose-ish. See L<Fey::ORM> for a more extensive example.
{
package MyApp::User;
+ use Moose;
MyApp::Mooseish->import;
has_table( 'User' );
@@
-88,7
+89,7
@@
Moose-ish. See L<Fey::ORM> 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'),