Skip to content

Instantly share code, notes, and snippets.

@mephinet
Created April 27, 2016 16:23
Show Gist options
  • Save mephinet/e15b01d6241f40f0f34c9cbaae35ea1d to your computer and use it in GitHub Desktop.
Save mephinet/e15b01d6241f40f0f34c9cbaae35ea1d to your computer and use it in GitHub Desktop.
Test::Class::Moose: subclasses no longer export 'ok' and friends
#! /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