From: John Napiorkowski <jjnapiork@cpan.org>
Date: Sun, 11 May 2008 04:13:00 +0000 (+0000)
Subject: typo fixes and skeleton for first test
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=b555289715def910c2c6620f3e8587b48e2d8760;p=gitmo%2FMooseX-Attribute-Cached.git

typo fixes and skeleton for first test
---

diff --git a/Makefile.PL b/Makefile.PL
index 6a05d21..085c1c2 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -1,12 +1,12 @@
 use inc::Module::Install;
 
-perl_version '5.008006';
+perl_version '5.008008';
 
 name     'MooseX-Attribute-Cached';
 all_from 'lib/MooseX/Attribute/Cached.pm';
-author   'John Napiorkowski <jjn1056@yahoo.com>';
+author   'John Napiorkowski <john.napiorkowski@takkle.com>';
 
-requires 'Moose' => '0.42';
+requires 'Moose' => '0.44';
 
 build_requires 'Test::More' => '0.70';
 build_requires 'Test::Pod' => '1.14';
diff --git a/lib/MooseX/Attribute/Cached.pm b/lib/MooseX/Attribute/Cached.pm
index 211a3b9..fb0f0ac 100644
--- a/lib/MooseX/Attribute/Cached.pm
+++ b/lib/MooseX/Attribute/Cached.pm
@@ -27,7 +27,7 @@ our $VERSION = '0.01';
 	package MyApp;
 	
 	use Moose;
-	with 'MooseX::Attribute::Cached.pm';
+	use MooseX::Attribute::Cached;
 
 	## Cache Storage Options Declared Manually
 	has 'shared_key_1' => (
diff --git a/t/000_load.t b/t/000_load.t
index d4bcf05..8904363 100644
--- a/t/000_load.t
+++ b/t/000_load.t
@@ -3,15 +3,9 @@
 use strict;
 use warnings;
 
-use Test::More no_plan => 1;
-use Test::Exception;
+use Test::More plan => 1;
 
-BEGIN {
-    use_ok('MooseX::MetaDescription');
-
-    use_ok('MooseX::MetaDescription::Meta::Class');
-    use_ok('MooseX::MetaDescription::Meta::Attribute');
-    use_ok('MooseX::MetaDescription::Meta::Trait');
 
-    use_ok('MooseX::MetaDescription::Description');
+BEGIN {
+    use_ok('MooseX::Attribute::Cached');
 }
diff --git a/t/001_basic.t b/t/001_basic.t
new file mode 100644
index 0000000..e06c4cc
--- /dev/null
+++ b/t/001_basic.t
@@ -0,0 +1,46 @@
+#!/usr/bin/perl
+
+use strict;
+use warnings;
+
+use Test::More plan => 1;
+
+=head1 NAME
+
+001_basic.t; tests the overall basic functionality
+
+=head1 DESCRIPTION
+
+Create a L<Moose> class that uses the Caching role and the try out the basic
+functionality.  This test uses L<Cache::FastMmap> as the default cache storage
+but you can override that with the following %ENV to test against your local
+L<Cache::Memcached> based caching server:
+
+	TDB write code for %ENV
+
+=head1 TESTS
+
+This package defines the following tests.
+
+=head2 Create Test Class
+
+Create a class that uses L<MooseX::Attribute::Cached> and has some attributes
+that are cached.
+
+=cut
+
+
+=head1 AUTHOR
+
+John Napiorkowski, C<< <john.napiorkowski at takkle.com> >>
+
+=head1 COPYRIGHT & LICENSE
+
+Copyright 2008 John Napiorkowski, all rights reserved.
+
+This program is free software; you can redistribute it and/or modify it
+under the same terms as Perl itself.
+
+=cut
+
+1;