allow tests to run without warnings even if YAML::XS is not installed
[gitmo/MooseX-Getopt.git] / t / 112_configfile_constructor_arg.t
index 9465ede..8cb1381 100644 (file)
@@ -10,6 +10,12 @@ use Test::More tests => 3;
 use Test::NoWarnings 1.04 ':early';
 use Path::Class;    # exports file, dir
 
+# avoid warning if all we have installed is YAML or YAML::Syck - the user will
+# see this eventually when he actually uses MooseX::SimpleConfig in his own
+# code
+use Config::Any::YAML;
+$Config::Any::YAML::NO_YAML_XS_WARNING = 1;
+
 {
     package Foo;
     use Moose;