Tweaks and documenting Mouse::Exporter
[gitmo/Mouse.git] / t / 007-attributes.t
index 4edd2d0..ae538e6 100644 (file)
@@ -1,9 +1,12 @@
 #!/usr/bin/env perl
 use strict;
 use warnings;
-use Test::More tests => 15;
+use Test::More tests => 18;
 use Test::Exception;
 
+use lib 't/lib';
+use Test::Mouse;
+
 do {
     package Class;
     use Mouse;
@@ -30,6 +33,10 @@ do {
 ok(!Class->can('x'), "No accessor is injected if 'is' has no value");
 can_ok('Class', 'y', 'z');
 
+has_attribute_ok 'Class', 'x';
+has_attribute_ok 'Class', 'y';
+has_attribute_ok 'Class', 'z';
+
 my $object = Class->new;
 
 ok(!$object->can('x'), "No accessor is injected if 'is' has no value");