* Everywhere
- Improvements to the MOP (e.g. Class->add_method)
+ * (build)
+ - Excise dependency on Test::Warn, we only used it in one simple test
+
0.04 Tue Jun 17 04:56:36 2008
* Mouse
Mouse::Meta::Attribute
build_requires 'Test::More';
build_requires 'Test::Exception';
-build_requires 'Test::Warn';
WriteAll;
#!/usr/bin/env perl
use Test::More tests => 1;
-use Test::Warn;
-warning_like {
+# we used to use Test::Warn here but there's no point in adding three deps total
+# for this one easy test
+
+my @warnings;
+local $SIG{__WARN__} = sub {
+ push @warnings, "@_";
+};
+
+do {
package Class;
use Mouse;
my $one = 1 + undef;
-} qr/uninitialized value/, 'using Mouse turns on warnings';
+};
+
+like("@warnings", qr/^Use of uninitialized value/, 'using Mouse turns on warnings');