Revert autogenerated tests. Tests should not changed radically.
[gitmo/Mouse.git] / t-failing / 100_bugs / 006_handles_foreign_class_bug.t
diff --git a/t-failing/100_bugs/006_handles_foreign_class_bug.t b/t-failing/100_bugs/006_handles_foreign_class_bug.t
deleted file mode 100644 (file)
index 53804cf..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-#!/usr/bin/perl
-# This is automatically generated by author/import-moose-test.pl.
-# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
-use t::lib::MooseCompat;
-
-use strict;
-use warnings;
-
-use Test::More;
-$TODO = q{Mouse is not yet completed};
-use Test::Exception;
-
-{
-    package Foo;
-
-    sub new {
-        bless({}, 'Foo')
-    }
-
-    sub a { 'Foo::a' }
-}
-
-{
-    package Bar;
-    use Mouse;
-
-    ::lives_ok {
-        has 'baz' => (
-            is      => 'ro',
-            isa     => 'Foo',
-            lazy    => 1,
-            default => sub { Foo->new() },
-            handles => qr/^a$/,
-        );
-    } '... can create the attribute with delegations';
-
-}
-
-my $bar;
-lives_ok {
-    $bar = Bar->new;
-} '... created the object ok';
-isa_ok($bar, 'Bar');
-
-is($bar->a, 'Foo::a', '... got the right delgated value');
-
-my @w;
-$SIG{__WARN__} = sub { push @w, "@_" };
-{
-    package Baz;
-    use Mouse;
-
-    ::lives_ok {
-        has 'bar' => (
-            is      => 'ro',
-            isa     => 'Foo',
-            lazy    => 1,
-            default => sub { Foo->new() },
-            handles => qr/.*/,
-        );
-    } '... can create the attribute with delegations';
-
-}
-
-is(@w, 0, "no warnings");
-
-
-my $baz;
-lives_ok {
-    $baz = Baz->new;
-} '... created the object ok';
-isa_ok($baz, 'Baz');
-
-is($baz->a, 'Foo::a', '... got the right delgated value');
-
-
-
-
-
-@w = ();
-
-{
-    package Blart;
-    use Mouse;
-
-    ::lives_ok {
-        has 'bar' => (
-            is      => 'ro',
-            isa     => 'Foo',
-            lazy    => 1,
-            default => sub { Foo->new() },
-            handles => [qw(a new)],
-        );
-    } '... can create the attribute with delegations';
-
-}
-
-{
-    local $TODO = "warning not yet implemented";
-
-    is(@w, 1, "one warning");
-    like($w[0], qr/not delegating.*new/i, "warned");
-}
-
-
-
-my $blart;
-lives_ok {
-    $blart = Blart->new;
-} '... created the object ok';
-isa_ok($blart, 'Blart');
-
-is($blart->a, 'Foo::a', '... got the right delgated value');
-
-done_testing;