projects
/
gitmo/Moose-Policy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
b14c8df
)
basic-test
stevan [Sat, 5 Aug 2006 21:23:10 +0000 (21:23 +0000)]
t/001_basic.t
patch
|
blob
|
blame
|
history
diff --git
a/t/001_basic.t
b/t/001_basic.t
index
cdc3c2b
..
549a5c6
100644
(file)
--- a/
t/001_basic.t
+++ b/
t/001_basic.t
@@
-33,6
+33,28
@@
BEGIN {
{
package My::Moose::Policy;
+ use constant attribute_metaclass => 'My::Moose::Meta::Attribute';
+}
+
+{
+ package Foo;
+ use Moose::Policy 'My::Moose::Policy';
+ use Moose;
-}
\ No newline at end of file
+ has 'bar' => (default => 'Foo::bar');
+}
+
+
+my $foo = Foo->new;
+isa_ok($foo, 'Foo');
+
+can_ok($foo, 'get_bar');
+can_ok($foo, 'set_bar');
+
+is($foo->get_bar, 'Foo::bar', '... got the right default value');
+
+
+
+
+