Created
April 27, 2016 16:23
-
-
Save mephinet/e15b01d6241f40f0f34c9cbaae35ea1d to your computer and use it in GitHub Desktop.
Test::Class::Moose: subclasses no longer export 'ok' and friends
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/env perl | |
package Test_Parent; | |
use Test::Class::Moose; | |
use namespace::autoclean; | |
package Test_Child; | |
use Test::Class::Moose extends => 'Test_Parent'; | |
use namespace::autoclean; | |
sub test_something { | |
ok( 1, 'great' ); | |
} | |
package main; | |
use Test::Class::Moose::Runner; | |
use warnings; | |
use strict; | |
my @classes = ('Test_Child'); | |
Test::Class::Moose::Runner->new( test_classes => \@classes )->runtests; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment