X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F010_basics%2F003_super_and_override.t;h=d619fcb6e14c621a939b3043352d510cfaef27d1;hb=1808c2dab86d0317d10f70d3a7a923e97daf54bb;hp=9484082a4dc2b5cafe6dce8b799fc47af8a29062;hpb=6b584f6c4dc1c2108c1bc233caec49627b2cce04;p=gitmo%2FMoose.git diff --git a/t/010_basics/003_super_and_override.t b/t/010_basics/003_super_and_override.t index 9484082..d619fcb 100644 --- a/t/010_basics/003_super_and_override.t +++ b/t/010_basics/003_super_and_override.t @@ -39,24 +39,24 @@ isa_ok($baz, 'Baz'); isa_ok($baz, 'Bar'); isa_ok($baz, 'Foo'); -is($baz->foo(), 'Foo::foo', '... got the right value from &foo'); -is($baz->bar(), 'Baz::bar -> Bar::bar -> Foo::bar', '... got the right value from &bar'); -is($baz->baz(), 'Baz::baz -> Foo::baz', '... got the right value from &baz'); +is($baz->foo(), 'Foo::foo', 'got the right value from &foo'); +is($baz->bar(), 'Baz::bar -> Bar::bar -> Foo::bar', 'got the right value from &bar'); +is($baz->baz(), 'Baz::baz -> Foo::baz', 'got the right value from &baz'); my $bar = Bar->new(); isa_ok($bar, 'Bar'); isa_ok($bar, 'Foo'); -is($bar->foo(), 'Foo::foo', '... got the right value from &foo'); -is($bar->bar(), 'Bar::bar -> Foo::bar', '... got the right value from &bar'); -is($bar->baz(), 'Foo::baz', '... got the right value from &baz'); +is($bar->foo(), 'Foo::foo', 'got the right value from &foo'); +is($bar->bar(), 'Bar::bar -> Foo::bar', 'got the right value from &bar'); +is($bar->baz(), 'Foo::baz', 'got the right value from &baz'); my $foo = Foo->new(); isa_ok($foo, 'Foo'); -is($foo->foo(), 'Foo::foo', '... got the right value from &foo'); -is($foo->bar(), 'Foo::bar', '... got the right value from &bar'); -is($foo->baz(), 'Foo::baz', '... got the right value from &baz'); +is($foo->foo(), 'Foo::foo', 'got the right value from &foo'); +is($foo->bar(), 'Foo::bar', 'got the right value from &bar'); +is($foo->baz(), 'Foo::baz', 'got the right value from &baz'); # some error cases @@ -75,7 +75,7 @@ is($foo->baz(), 'Foo::baz', '... got the right value from &baz'); ::dies_ok { override 'bling' => sub {}; - } '... cannot override a method which has a local equivalent'; + } 'cannot override a method which has a local equivalent'; }