rename option to undef_on_null_fk and make it default for belongs_to
[dbsrgits/DBIx-Class-Historic.git] / t / 54taint.t
CommitLineData
83542a7d 1#!perl -T
2
3# the above line forces Test::Harness into taint-mode
4
5use strict;
6use warnings;
7
8our @plan;
9
10BEGIN {
11 eval "require Module::Find;";
12 @plan = $@ ? ( skip_all => 'Could not load Module::Find' )
13 : ( tests => 2 );
14}
15
3fe04f74 16package DBICTest::Plain;
83542a7d 17
3fe04f74 18# Use the Plain test class namespace to avoid the need for a
83542a7d 19# new test infrastructure. If invalid classes will be introduced to
3fe04f74 20# 't/lib/DBICTest/Plain/' someday, this has to be reworked.
83542a7d 21
22use lib qw(t/lib);
23
24use Test::More @plan;
25
26use base qw/DBIx::Class::Schema/;
27
28eval{ __PACKAGE__->load_classes() };
29cmp_ok( $@, 'eq', '',
30 'Loading classes with Module::Find worked in taint mode' );
3fe04f74 31ok( __PACKAGE__->source('Test'), 'The Plain::Test source has been registered' );
83542a7d 32
331;