File: generate-source.t

package info (click to toggle)
libdbix-class-helpers-perl 2.023007-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 792 kB
  • ctags: 294
  • sloc: perl: 3,872; sql: 161; makefile: 7
file content (17 lines) | stat: -rw-r--r-- 441 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use strict;
use warnings;

use lib 't/lib';
use Test::More;

use TestSchema;

TestSchema->load_components('Helper::Schema::GenerateSource');
TestSchema->generate_source(PsychoKiller => 'Lolbot');

my $class = TestSchema->class('PsychoKiller');
ok($class, 'PsychoKiller gets registered');
ok($class->isa('Lolbot'), 'PsychoKiller inherits from Lolbot');
ok(ref($class) ne 'Lolbot', '... but PsychoKiller is not just a Lolbot');

done_testing;