DEATH TO ALL zionist ELLIPSES
[gitmo/Moose.git] / t / 030_roles / 013_method_aliasing_in_composition.t
index 3f518ee..34b2210 100644 (file)
@@ -23,14 +23,14 @@ use Test::Exception;
 
     ::lives_ok {
         with 'My::Role' => { -alias => { bar => 'role_bar' } };
-    } '... this succeeds';
+    } 'this succeeds';
 
     package My::Class::Failure;
     use Moose;
 
     ::throws_ok {
         with 'My::Role' => { -alias => { bar => 'role_bar' } };
-    } qr/Cannot create a method alias if a local method of the same name exists/, '... this succeeds';
+    } qr/Cannot create a method alias if a local method of the same name exists/, 'this succeeds';
 
     sub role_bar { 'FAIL' }
 }
@@ -43,7 +43,7 @@ ok(My::Class->meta->has_method($_), "we have a $_ method") for qw(foo baz bar ro
 
     ::lives_ok {
         with 'My::Role' => { -alias => { bar => 'role_bar' } };
-    } '... this succeeds';
+    } 'this succeeds';
 
     sub bar { 'My::OtherRole::bar' }
 
@@ -52,14 +52,14 @@ ok(My::Class->meta->has_method($_), "we have a $_ method") for qw(foo baz bar ro
 
     ::throws_ok {
         with 'My::Role' => { -alias => { bar => 'role_bar' } };
-    } qr/Cannot create a method alias if a local method of the same name exists/, '... cannot alias to a name that exists';
+    } qr/Cannot create a method alias if a local method of the same name exists/, 'cannot alias to a name that exists';
 
     sub role_bar { 'FAIL' }
 }
 
 ok(My::OtherRole->meta->has_method($_), "we have a $_ method") for qw(foo baz role_bar);
-ok(My::OtherRole->meta->requires_method('bar'), '... and the &bar method is required');
-ok(!My::OtherRole->meta->requires_method('role_bar'), '... and the &role_bar method is not required');
+ok(My::OtherRole->meta->requires_method('bar'), 'and the &bar method is required');
+ok(!My::OtherRole->meta->requires_method('role_bar'), 'and the &role_bar method is not required');
 
 {
     package My::AliasingRole;
@@ -67,11 +67,11 @@ ok(!My::OtherRole->meta->requires_method('role_bar'), '... and the &role_bar met
 
     ::lives_ok {
         with 'My::Role' => { -alias => { bar => 'role_bar' } };
-    } '... this succeeds';
+    } 'this succeeds';
 }
 
 ok(My::AliasingRole->meta->has_method($_), "we have a $_ method") for qw(foo baz role_bar);
-ok(!My::AliasingRole->meta->requires_method('bar'), '... and the &bar method is not required');
+ok(!My::AliasingRole->meta->requires_method('bar'), 'and the &bar method is not required');
 
 {
     package Foo::Role;
@@ -96,7 +96,7 @@ ok(!My::AliasingRole->meta->requires_method('bar'), '... and the &bar method is
         with 'Foo::Role' => { -alias => { 'foo' => 'foo_foo' }, -excludes => 'foo' },
              'Bar::Role' => { -alias => { 'foo' => 'bar_foo' }, -excludes => 'foo' },
              'Baz::Role';
-    } '... composed our roles correctly';
+    } 'composed our roles correctly';
 
     package My::Foo::Class::Broken;
     use Moose;
@@ -106,16 +106,16 @@ ok(!My::AliasingRole->meta->requires_method('bar'), '... and the &bar method is
              'Bar::Role' => { -alias => { 'foo' => 'foo_foo' }, -excludes => 'foo' },
              'Baz::Role';
     } qr/Due to a method name conflict in roles 'Bar::Role' and 'Foo::Role', the method 'foo_foo' must be implemented or excluded by 'My::Foo::Class::Broken'/,
-      '... composed our roles correctly';
+      'composed our roles correctly';
 }
 
 {
     my $foo = My::Foo::Class->new;
     isa_ok($foo, 'My::Foo::Class');
     can_ok($foo, $_) for qw/foo foo_foo bar_foo/;
-    is($foo->foo, 'Baz::Role::foo', '... got the right method');
-    is($foo->foo_foo, 'Foo::Role::foo', '... got the right method');
-    is($foo->bar_foo, 'Bar::Role::foo', '... got the right method');
+    is($foo->foo, 'Baz::Role::foo', 'got the right method');
+    is($foo->foo_foo, 'Foo::Role::foo', 'got the right method');
+    is($foo->bar_foo, 'Bar::Role::foo', 'got the right method');
 }
 
 {
@@ -126,11 +126,11 @@ ok(!My::AliasingRole->meta->requires_method('bar'), '... and the &bar method is
         with 'Foo::Role' => { -alias => { 'foo' => 'foo_foo' }, -excludes => 'foo' },
              'Bar::Role' => { -alias => { 'foo' => 'bar_foo' }, -excludes => 'foo' },
              'Baz::Role';
-    } '... composed our roles correctly';
+    } 'composed our roles correctly';
 }
 
 ok(My::Foo::Role->meta->has_method($_), "we have a $_ method") for qw/foo foo_foo bar_foo/;;
-ok(!My::Foo::Role->meta->requires_method('foo'), '... and the &foo method is not required');
+ok(!My::Foo::Role->meta->requires_method('foo'), 'and the &foo method is not required');
 
 
 {
@@ -141,11 +141,11 @@ ok(!My::Foo::Role->meta->requires_method('foo'), '... and the &foo method is not
         with 'Foo::Role' => { -alias => { 'foo' => 'foo_foo' }, -excludes => 'foo' },
              'Bar::Role' => { -alias => { 'foo' => 'foo_foo' }, -excludes => 'foo' },
              'Baz::Role';
-    } '... composed our roles correctly';
+    } 'composed our roles correctly';
 }
 
 ok(!My::Foo::Role::Other->meta->has_method('foo_foo'), "we dont have a foo_foo method");
-ok(My::Foo::Role::Other->meta->requires_method('foo_foo'), '... and the &foo method is required');
+ok(My::Foo::Role::Other->meta->requires_method('foo_foo'), 'and the &foo method is required');
 
 {
     package My::Foo::AliasOnly;
@@ -153,7 +153,7 @@ ok(My::Foo::Role::Other->meta->requires_method('foo_foo'), '... and the &foo met
 
     ::lives_ok {
         with 'Foo::Role' => { -alias => { 'foo' => 'foo_foo' } },
-    } '... composed our roles correctly';
+    } 'composed our roles correctly';
 }
 
 ok(My::Foo::AliasOnly->meta->has_method('foo'), 'we have a foo method');