Commit | Line | Data |
2c0c56b7 |
1 | use strict; |
2 | use Test::More; |
2c0c56b7 |
3 | |
4 | use Data::Dumper; |
5 | $Data::Dumper::Sortkeys = 1; |
6 | |
7 | use lib qw(t/lib); |
2c0c56b7 |
8 | use_ok('DBICTest'); |
2c0c56b7 |
9 | |
a47e1233 |
10 | my $schema = DBICTest->init_schema(); |
c93ddd59 |
11 | my $rs = $schema->resultset('CD')->search({ |
12 | 'artist.name' => 'We Are Goth', |
13 | 'liner_notes.notes' => 'Kill Yourself!', |
14 | }, { |
15 | join => [ qw/artist liner_notes/ ], |
16 | }); |
2c0c56b7 |
17 | |
18 | Dumper($rs); |
19 | |
c93ddd59 |
20 | $rs = $schema->resultset('CD')->search({ |
21 | 'artist.name' => 'We Are Goth', |
22 | 'liner_notes.notes' => 'Kill Yourself!', |
23 | }, { |
24 | join => [ qw/artist liner_notes/ ], |
25 | }); |
2c0c56b7 |
26 | |
c93ddd59 |
27 | cmp_ok( $rs->count(), '==', 1, "Single record in after death with dumper"); |
2c0c56b7 |
28 | |
dc4600b2 |
29 | done_testing; |