DEATH TO ALL zionist ELLIPSES
[gitmo/Moose.git] / t / 030_roles / 003_apply_role.t
index 1ccff67..037299b 100644 (file)
@@ -67,59 +67,59 @@ isa_ok( $foobar_class_meta, 'Moose::Meta::Class' );
 dies_ok {
     $foo_class_meta->does_role();
 }
-'... does_role requires a role name';
+'does_role requires a role name';
 
 dies_ok {
     $foo_class_meta->add_role();
 }
-'... apply_role requires a role';
+'apply_role requires a role';
 
 dies_ok {
     $foo_class_meta->add_role( bless( {} => 'Fail' ) );
 }
-'... apply_role requires a role';
+'apply_role requires a role';
 
 ok( $foo_class_meta->does_role('FooRole'),
-    '... the FooClass->meta does_role FooRole' );
+    'the FooClass->meta does_role FooRole' );
 ok( !$foo_class_meta->does_role('OtherRole'),
-    '... the FooClass->meta !does_role OtherRole' );
+    'the FooClass->meta !does_role OtherRole' );
 
 ok( $foobar_class_meta->does_role('FooRole'),
-    '... the FooBarClass->meta does_role FooRole' );
+    'the FooBarClass->meta does_role FooRole' );
 ok( $foobar_class_meta->does_role('BarRole'),
-    '... the FooBarClass->meta does_role BarRole' );
+    'the FooBarClass->meta does_role BarRole' );
 ok( !$foobar_class_meta->does_role('OtherRole'),
-    '... the FooBarClass->meta !does_role OtherRole' );
+    'the FooBarClass->meta !does_role OtherRole' );
 
 foreach my $method_name (qw(bar baz foo boo blau goo)) {
     ok( $foo_class_meta->has_method($method_name),
-        '... FooClass has the method ' . $method_name );
+        'FooClass has the method ' . $method_name );
     ok( $foobar_class_meta->has_method($method_name),
-        '... FooBarClass has the method ' . $method_name );
+        'FooBarClass has the method ' . $method_name );
 }
 
 ok( !$foo_class_meta->has_method('woot'),
-    '... FooClass lacks the method woot' );
+    'FooClass lacks the method woot' );
 ok( $foobar_class_meta->has_method('woot'),
-    '... FooBarClass has the method woot' );
+    'FooBarClass has the method woot' );
 
 foreach my $attr_name (qw(bar baz)) {
     ok( $foo_class_meta->has_attribute($attr_name),
-        '... FooClass has the attribute ' . $attr_name );
+        'FooClass has the attribute ' . $attr_name );
     ok( $foobar_class_meta->has_attribute($attr_name),
-        '... FooBarClass has the attribute ' . $attr_name );
+        'FooBarClass has the attribute ' . $attr_name );
 }
 
 can_ok( 'FooClass', 'does' );
-ok( FooClass->does('FooRole'),    '... the FooClass does FooRole' );
-ok( !FooClass->does('BarRole'),   '... the FooClass does not do BarRole' );
-ok( !FooClass->does('OtherRole'), '... the FooClass does not do OtherRole' );
+ok( FooClass->does('FooRole'),    'the FooClass does FooRole' );
+ok( !FooClass->does('BarRole'),   'the FooClass does not do BarRole' );
+ok( !FooClass->does('OtherRole'), 'the FooClass does not do OtherRole' );
 
 can_ok( 'FooBarClass', 'does' );
-ok( FooBarClass->does('FooRole'), '... the FooClass does FooRole' );
-ok( FooBarClass->does('BarRole'), '... the FooBarClass does FooBarRole' );
+ok( FooBarClass->does('FooRole'), 'the FooClass does FooRole' );
+ok( FooBarClass->does('BarRole'), 'the FooBarClass does FooBarRole' );
 ok( !FooBarClass->does('OtherRole'),
-    '... the FooBarClass does not do OtherRole' );
+    'the FooBarClass does not do OtherRole' );
 
 my $foo = FooClass->new();
 isa_ok( $foo, 'FooClass' );
@@ -127,51 +127,51 @@ isa_ok( $foo, 'FooClass' );
 my $foobar = FooBarClass->new();
 isa_ok( $foobar, 'FooBarClass' );
 
-is( $foo->goo,    'FooClass::goo', '... got the right value of goo' );
-is( $foobar->goo, 'FooRole::goo',  '... got the right value of goo' );
+is( $foo->goo,    'FooClass::goo', 'got the right value of goo' );
+is( $foobar->goo, 'FooRole::goo',  'got the right value of goo' );
 
 is( $foo->boo, 'FooRole::boo -> BarClass::boo',
-    '... got the right value from ->boo' );
+    'got the right value from ->boo' );
 is( $foobar->boo, 'FooRole::boo -> FooRole::boo -> BarClass::boo',
-    '... got the right value from ->boo (double wrapped)' );
+    'got the right value from ->boo (double wrapped)' );
 
 is( $foo->blau, 'FooRole::blau -> FooClass::blau',
-    '... got the right value from ->blau' );
+    'got the right value from ->blau' );
 is( $foobar->blau, 'FooRole::blau -> FooRole::blau -> FooClass::blau',
-    '... got the right value from ->blau' );
+    'got the right value from ->blau' );
 
 foreach my $foo ( $foo, $foobar ) {
     can_ok( $foo, 'does' );
-    ok( $foo->does('FooRole'), '... an instance of FooClass does FooRole' );
+    ok( $foo->does('FooRole'), 'an instance of FooClass does FooRole' );
     ok( !$foo->does('OtherRole'),
-        '... and instance of FooClass does not do OtherRole' );
+        'and instance of FooClass does not do OtherRole' );
 
     can_ok( $foobar, 'does' );
     ok( $foobar->does('FooRole'),
-        '... an instance of FooBarClass does FooRole' );
+        'an instance of FooBarClass does FooRole' );
     ok( $foobar->does('BarRole'),
-        '... an instance of FooBarClass does BarRole' );
+        'an instance of FooBarClass does BarRole' );
     ok( !$foobar->does('OtherRole'),
-        '... and instance of FooBarClass does not do OtherRole' );
+        'and instance of FooBarClass does not do OtherRole' );
 
     for my $method (qw/bar baz foo boo goo blau/) {
         can_ok( $foo, $method );
     }
 
-    is( $foo->foo, 'FooRole::foo', '... got the right value of foo' );
+    is( $foo->foo, 'FooRole::foo', 'got the right value of foo' );
 
-    ok( !defined( $foo->baz ), '... $foo->baz is undefined' );
-    ok( !defined( $foo->bar ), '... $foo->bar is undefined' );
+    ok( !defined( $foo->baz ), '$foo->baz is undefined' );
+    ok( !defined( $foo->bar ), '$foo->bar is undefined' );
 
     dies_ok {
         $foo->baz(1);
     }
-    '... baz is a read-only accessor';
+    'baz is a read-only accessor';
 
     dies_ok {
         $foo->bar(1);
     }
-    '... bar is a read-write accessor with a type constraint';
+    'bar is a read-write accessor with a type constraint';
 
     my $foo2 = FooClass->new();
     isa_ok( $foo2, 'FooClass' );
@@ -179,7 +179,7 @@ foreach my $foo ( $foo, $foobar ) {
     lives_ok {
         $foo->bar($foo2);
     }
-    '... bar is a read-write accessor with a type constraint';
+    'bar is a read-write accessor with a type constraint';
 
-    is( $foo->bar, $foo2, '... got the right value for bar now' );
+    is( $foo->bar, $foo2, 'got the right value for bar now' );
 }