make all warnings fatal in tests
[gitmo/MooseX-ConfigFromFile.git] / t / 04a_getopt.t
CommitLineData
742b859c 1use strict;
bd567467 2use warnings FATAL => 'all';
742b859c 3
4use Test::More tests => 2;
5use Test::NoWarnings 1.04 ':early';
6
7use Test::Without::Module 'MooseX::Getopt';
8
9{
10 package Foo::NoOptions;
11
12 use Moose;
13 with qw(MooseX::ConfigFromFile);
14 sub get_config_from_file { }
15}
16
17ok(
18 !Foo::NoOptions->meta->find_attribute_by_name('configfile')->does('MooseX::Getopt::Meta::Attribute::Trait'),
19 'the Getopt attr trait is not added if not installed',
20);
21