From: Patrick Simon Date: Sat, 11 Apr 2015 11:54:26 +0000 (+0200) Subject: unicode chars working, but german special chars giving errors X-Git-Tag: v1.001_030~5^2^2 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits%2FDBIx-Class-Fixtures.git;a=commitdiff_plain;h=c2a9b18b0ef6864d0bc75e5c52f05d2cc896f00f unicode chars working, but german special chars giving errors --- diff --git a/t/lib/.DBICTest.pm.un~ b/t/lib/.DBICTest.pm.un~ new file mode 100755 index 0000000..8c8e96b Binary files /dev/null and b/t/lib/.DBICTest.pm.un~ differ diff --git a/t/lib/DBICTest.pm b/t/lib/DBICTest.pm index 69d0c74..19f7398 100755 --- a/t/lib/DBICTest.pm +++ b/t/lib/DBICTest.pm @@ -161,7 +161,7 @@ sub populate_schema { [ 3, 1, "Caterwaulin' Blues", 1997 ], [ 4, 2, "Generic Manufactured Singles", 2001 ], [ 5, 2, "Unicode Chars ™ © • † ∑ α β « » → …", 2015 ], - [ 6, 3, "Come Be Depressed With Us", 1998 ], + [ 6, 3, "Übertreibung älterer Umlaute", 1998 ], ]); $schema->populate('Tag', [ diff --git a/t/var/DBIxClass.db b/t/var/DBIxClass.db new file mode 100644 index 0000000..0341702 Binary files /dev/null and b/t/var/DBIxClass.db differ diff --git a/t/var/DBIxClassDifferent.db b/t/var/DBIxClassDifferent.db new file mode 100644 index 0000000..67aef5c Binary files /dev/null and b/t/var/DBIxClassDifferent.db differ diff --git a/t/var/fixtures/CD/1.fix b/t/var/fixtures/CD/1.fix new file mode 100644 index 0000000..b7f372b --- /dev/null +++ b/t/var/fixtures/CD/1.fix @@ -0,0 +1,6 @@ +$HASH1 = { + artist => 1, + cdid => 1, + title => 'Spoonful of bees', + year => 1999 + }; diff --git a/t/var/fixtures/CD/2.fix b/t/var/fixtures/CD/2.fix new file mode 100644 index 0000000..a6b679a --- /dev/null +++ b/t/var/fixtures/CD/2.fix @@ -0,0 +1,6 @@ +$HASH1 = { + artist => 1, + cdid => 2, + title => 'Forkful of bees', + year => 2001 + }; diff --git a/t/var/fixtures/CD/3.fix b/t/var/fixtures/CD/3.fix new file mode 100644 index 0000000..96c1068 --- /dev/null +++ b/t/var/fixtures/CD/3.fix @@ -0,0 +1,6 @@ +$HASH1 = { + artist => 1, + cdid => 3, + title => 'Caterwaulin\' Blues', + year => 1997 + }; diff --git a/t/var/fixtures/CD/4.fix b/t/var/fixtures/CD/4.fix new file mode 100644 index 0000000..26d5952 --- /dev/null +++ b/t/var/fixtures/CD/4.fix @@ -0,0 +1,6 @@ +$HASH1 = { + artist => 2, + cdid => 4, + title => 'Generic Manufactured Singles', + year => 2001 + }; diff --git a/t/var/fixtures/CD/6.fix b/t/var/fixtures/CD/6.fix new file mode 100644 index 0000000..11a0d17 --- /dev/null +++ b/t/var/fixtures/CD/6.fix @@ -0,0 +1,6 @@ +$HASH1 = { + artist => 3, + cdid => 6, + title => "\334bertreibung \344lterer Umlaute", + year => 1998 + }; diff --git a/t/var/fixtures/_config_set b/t/var/fixtures/_config_set new file mode 100644 index 0000000..32a5aae --- /dev/null +++ b/t/var/fixtures/_config_set @@ -0,0 +1,17 @@ +$VAR1 = { + 'sets' => [ + { + 'class' => 'CD', + 'quantity' => 'all' + } + ], + 'might_have' => { + 'fetch' => 0 + }, + 'has_many' => { + 'fetch' => 0 + }, + 'belongs_to' => { + 'fetch' => 1 + } + }; diff --git a/t/var/fixtures/_dumper_version b/t/var/fixtures/_dumper_version new file mode 100644 index 0000000..85690d1 --- /dev/null +++ b/t/var/fixtures/_dumper_version @@ -0,0 +1 @@ +1.001029 \ No newline at end of file diff --git a/t/var/fixtures/artist/1.fix b/t/var/fixtures/artist/1.fix new file mode 100644 index 0000000..cd82bac --- /dev/null +++ b/t/var/fixtures/artist/1.fix @@ -0,0 +1,4 @@ +$HASH1 = { + artistid => 1, + name => 'Caterwauler McCrae' + }; diff --git a/t/var/fixtures/artist/2.fix b/t/var/fixtures/artist/2.fix new file mode 100644 index 0000000..997aaaf --- /dev/null +++ b/t/var/fixtures/artist/2.fix @@ -0,0 +1,4 @@ +$HASH1 = { + artistid => 2, + name => 'Random Boy Band' + }; diff --git a/t/var/fixtures/artist/3.fix b/t/var/fixtures/artist/3.fix new file mode 100644 index 0000000..d117d39 --- /dev/null +++ b/t/var/fixtures/artist/3.fix @@ -0,0 +1,4 @@ +$HASH1 = { + artistid => 3, + name => 'We Are Goth' + }; diff --git a/t/var/fixtures/excludes/CD/1.fix b/t/var/fixtures/excludes/CD/1.fix new file mode 100644 index 0000000..b7f372b --- /dev/null +++ b/t/var/fixtures/excludes/CD/1.fix @@ -0,0 +1,6 @@ +$HASH1 = { + artist => 1, + cdid => 1, + title => 'Spoonful of bees', + year => 1999 + }; diff --git a/t/var/fixtures/excludes/CD/2.fix b/t/var/fixtures/excludes/CD/2.fix new file mode 100644 index 0000000..a6b679a --- /dev/null +++ b/t/var/fixtures/excludes/CD/2.fix @@ -0,0 +1,6 @@ +$HASH1 = { + artist => 1, + cdid => 2, + title => 'Forkful of bees', + year => 2001 + }; diff --git a/t/var/fixtures/excludes/CD/3.fix b/t/var/fixtures/excludes/CD/3.fix new file mode 100644 index 0000000..96c1068 --- /dev/null +++ b/t/var/fixtures/excludes/CD/3.fix @@ -0,0 +1,6 @@ +$HASH1 = { + artist => 1, + cdid => 3, + title => 'Caterwaulin\' Blues', + year => 1997 + }; diff --git a/t/var/fixtures/excludes/CD/4.fix b/t/var/fixtures/excludes/CD/4.fix new file mode 100644 index 0000000..26d5952 --- /dev/null +++ b/t/var/fixtures/excludes/CD/4.fix @@ -0,0 +1,6 @@ +$HASH1 = { + artist => 2, + cdid => 4, + title => 'Generic Manufactured Singles', + year => 2001 + }; diff --git a/t/var/fixtures/excludes/CD/5.fix b/t/var/fixtures/excludes/CD/5.fix new file mode 100644 index 0000000..0912382 --- /dev/null +++ b/t/var/fixtures/excludes/CD/5.fix @@ -0,0 +1,6 @@ +$HASH1 = { + artist => 2, + cdid => 5, + title => "Unicode Chars \x{2122} \251 \x{2022} \x{2020} \x{2211} \x{3b1} \x{3b2} \253 \273 \x{2192} \x{2026}", + year => 2015 + }; diff --git a/t/var/fixtures/excludes/CD/6.fix b/t/var/fixtures/excludes/CD/6.fix new file mode 100644 index 0000000..11a0d17 --- /dev/null +++ b/t/var/fixtures/excludes/CD/6.fix @@ -0,0 +1,6 @@ +$HASH1 = { + artist => 3, + cdid => 6, + title => "\334bertreibung \344lterer Umlaute", + year => 1998 + }; diff --git a/t/var/fixtures/excludes/_config_set b/t/var/fixtures/excludes/_config_set new file mode 100644 index 0000000..00370ca --- /dev/null +++ b/t/var/fixtures/excludes/_config_set @@ -0,0 +1,33 @@ +$VAR1 = { + 'sets' => [ + { + 'quantity' => 'all', + 'class' => 'Producer' + }, + { + 'quantity' => 'all', + 'class' => 'CD' + }, + { + 'quantity' => 'all', + 'class' => 'Artist' + }, + { + 'quantity' => 'all', + 'class' => 'Track' + }, + { + 'quantity' => 'all', + 'class' => 'CD_to_Producer' + } + ], + 'belongs_to' => { + 'fetch' => 0 + }, + 'has_many' => { + 'fetch' => 0 + }, + 'might_have' => { + 'fetch' => 0 + } + }; diff --git a/t/var/fixtures/excludes/_dumper_version b/t/var/fixtures/excludes/_dumper_version new file mode 100644 index 0000000..85690d1 --- /dev/null +++ b/t/var/fixtures/excludes/_dumper_version @@ -0,0 +1 @@ +1.001029 \ No newline at end of file diff --git a/t/var/fixtures/excludes/artist/1.fix b/t/var/fixtures/excludes/artist/1.fix new file mode 100644 index 0000000..cd82bac --- /dev/null +++ b/t/var/fixtures/excludes/artist/1.fix @@ -0,0 +1,4 @@ +$HASH1 = { + artistid => 1, + name => 'Caterwauler McCrae' + }; diff --git a/t/var/fixtures/excludes/artist/2.fix b/t/var/fixtures/excludes/artist/2.fix new file mode 100644 index 0000000..997aaaf --- /dev/null +++ b/t/var/fixtures/excludes/artist/2.fix @@ -0,0 +1,4 @@ +$HASH1 = { + artistid => 2, + name => 'Random Boy Band' + }; diff --git a/t/var/fixtures/excludes/artist/3.fix b/t/var/fixtures/excludes/artist/3.fix new file mode 100644 index 0000000..d117d39 --- /dev/null +++ b/t/var/fixtures/excludes/artist/3.fix @@ -0,0 +1,4 @@ +$HASH1 = { + artistid => 3, + name => 'We Are Goth' + }; diff --git a/t/var/fixtures/excludes/artist/32948.fix b/t/var/fixtures/excludes/artist/32948.fix new file mode 100644 index 0000000..f8f2fce --- /dev/null +++ b/t/var/fixtures/excludes/artist/32948.fix @@ -0,0 +1,4 @@ +$HASH1 = { + artistid => 32948, + name => 'Big PK' + }; diff --git a/t/var/fixtures/excludes/artist/4.fix b/t/var/fixtures/excludes/artist/4.fix new file mode 100644 index 0000000..479e5ea --- /dev/null +++ b/t/var/fixtures/excludes/artist/4.fix @@ -0,0 +1,4 @@ +$HASH1 = { + artistid => 4, + name => '' + }; diff --git a/t/var/fixtures/excludes/cd_to_producer/1-1.fix b/t/var/fixtures/excludes/cd_to_producer/1-1.fix new file mode 100644 index 0000000..c08f3b2 --- /dev/null +++ b/t/var/fixtures/excludes/cd_to_producer/1-1.fix @@ -0,0 +1,4 @@ +$HASH1 = { + cd => 1, + producer => 1 + }; diff --git a/t/var/fixtures/excludes/cd_to_producer/1-2.fix b/t/var/fixtures/excludes/cd_to_producer/1-2.fix new file mode 100644 index 0000000..58f94f1 --- /dev/null +++ b/t/var/fixtures/excludes/cd_to_producer/1-2.fix @@ -0,0 +1,4 @@ +$HASH1 = { + cd => 1, + producer => 2 + }; diff --git a/t/var/fixtures/excludes/cd_to_producer/1-3.fix b/t/var/fixtures/excludes/cd_to_producer/1-3.fix new file mode 100644 index 0000000..c9ed9a5 --- /dev/null +++ b/t/var/fixtures/excludes/cd_to_producer/1-3.fix @@ -0,0 +1,4 @@ +$HASH1 = { + cd => 1, + producer => 3 + }; diff --git a/t/var/fixtures/excludes/cd_to_producer/2-1.fix b/t/var/fixtures/excludes/cd_to_producer/2-1.fix new file mode 100644 index 0000000..f19c713 --- /dev/null +++ b/t/var/fixtures/excludes/cd_to_producer/2-1.fix @@ -0,0 +1,4 @@ +$HASH1 = { + cd => 2, + producer => 1 + }; diff --git a/t/var/fixtures/excludes/cd_to_producer/2-2.fix b/t/var/fixtures/excludes/cd_to_producer/2-2.fix new file mode 100644 index 0000000..00981e1 --- /dev/null +++ b/t/var/fixtures/excludes/cd_to_producer/2-2.fix @@ -0,0 +1,4 @@ +$HASH1 = { + cd => 2, + producer => 2 + }; diff --git a/t/var/fixtures/excludes/cd_to_producer/3-3.fix b/t/var/fixtures/excludes/cd_to_producer/3-3.fix new file mode 100644 index 0000000..fb5b464 --- /dev/null +++ b/t/var/fixtures/excludes/cd_to_producer/3-3.fix @@ -0,0 +1,4 @@ +$HASH1 = { + cd => 3, + producer => 3 + }; diff --git a/t/var/fixtures/excludes/producer/1.fix b/t/var/fixtures/excludes/producer/1.fix new file mode 100644 index 0000000..a8964e1 --- /dev/null +++ b/t/var/fixtures/excludes/producer/1.fix @@ -0,0 +1,4 @@ +$HASH1 = { + name => 'Matt S Trout', + producerid => 1 + }; diff --git a/t/var/fixtures/excludes/producer/2.fix b/t/var/fixtures/excludes/producer/2.fix new file mode 100644 index 0000000..a3b207b --- /dev/null +++ b/t/var/fixtures/excludes/producer/2.fix @@ -0,0 +1,4 @@ +$HASH1 = { + name => 'Bob The Builder', + producerid => 2 + }; diff --git a/t/var/fixtures/excludes/producer/3.fix b/t/var/fixtures/excludes/producer/3.fix new file mode 100644 index 0000000..b01cc0d --- /dev/null +++ b/t/var/fixtures/excludes/producer/3.fix @@ -0,0 +1,4 @@ +$HASH1 = { + name => 'Fred The Phenotype', + producerid => 3 + }; diff --git a/t/var/fixtures/excludes/track/10.fix b/t/var/fixtures/excludes/track/10.fix new file mode 100644 index 0000000..e6e9afd --- /dev/null +++ b/t/var/fixtures/excludes/track/10.fix @@ -0,0 +1,9 @@ +$HASH1 = { + cd => 4, + last_updated_on + => undef, + position + => 1, + title => 'Boring Name', + trackid => 10 + }; diff --git a/t/var/fixtures/excludes/track/11.fix b/t/var/fixtures/excludes/track/11.fix new file mode 100644 index 0000000..5b19269 --- /dev/null +++ b/t/var/fixtures/excludes/track/11.fix @@ -0,0 +1,9 @@ +$HASH1 = { + cd => 4, + last_updated_on + => undef, + position + => 2, + title => 'Boring Song', + trackid => 11 + }; diff --git a/t/var/fixtures/excludes/track/12.fix b/t/var/fixtures/excludes/track/12.fix new file mode 100644 index 0000000..418ccdc --- /dev/null +++ b/t/var/fixtures/excludes/track/12.fix @@ -0,0 +1,9 @@ +$HASH1 = { + cd => 4, + last_updated_on + => undef, + position + => 3, + title => 'No More Ideas', + trackid => 12 + }; diff --git a/t/var/fixtures/excludes/track/13.fix b/t/var/fixtures/excludes/track/13.fix new file mode 100644 index 0000000..b42ba45 --- /dev/null +++ b/t/var/fixtures/excludes/track/13.fix @@ -0,0 +1,9 @@ +$HASH1 = { + cd => 5, + last_updated_on + => undef, + position + => 1, + title => 'Sad', + trackid => 13 + }; diff --git a/t/var/fixtures/excludes/track/14.fix b/t/var/fixtures/excludes/track/14.fix new file mode 100644 index 0000000..1fcd807 --- /dev/null +++ b/t/var/fixtures/excludes/track/14.fix @@ -0,0 +1,9 @@ +$HASH1 = { + cd => 5, + last_updated_on + => undef, + position + => 2, + title => 'Under The Weather', + trackid => 14 + }; diff --git a/t/var/fixtures/excludes/track/15.fix b/t/var/fixtures/excludes/track/15.fix new file mode 100644 index 0000000..8b82fd2 --- /dev/null +++ b/t/var/fixtures/excludes/track/15.fix @@ -0,0 +1,9 @@ +$HASH1 = { + cd => 5, + last_updated_on + => undef, + position + => 3, + title => 'Suicidal', + trackid => 15 + }; diff --git a/t/var/fixtures/excludes/track/16.fix b/t/var/fixtures/excludes/track/16.fix new file mode 100644 index 0000000..2f5d4aa --- /dev/null +++ b/t/var/fixtures/excludes/track/16.fix @@ -0,0 +1,9 @@ +$HASH1 = { + cd => 1, + last_updated_on + => undef, + position + => 1, + title => 'The Bees Knees', + trackid => 16 + }; diff --git a/t/var/fixtures/excludes/track/17.fix b/t/var/fixtures/excludes/track/17.fix new file mode 100644 index 0000000..d5accd5 --- /dev/null +++ b/t/var/fixtures/excludes/track/17.fix @@ -0,0 +1,9 @@ +$HASH1 = { + cd => 1, + last_updated_on + => undef, + position + => 2, + title => 'Apiary', + trackid => 17 + }; diff --git a/t/var/fixtures/excludes/track/18.fix b/t/var/fixtures/excludes/track/18.fix new file mode 100644 index 0000000..abc8e4c --- /dev/null +++ b/t/var/fixtures/excludes/track/18.fix @@ -0,0 +1,9 @@ +$HASH1 = { + cd => 1, + last_updated_on + => undef, + position + => 3, + title => 'Beehind You', + trackid => 18 + }; diff --git a/t/var/fixtures/excludes/track/4.fix b/t/var/fixtures/excludes/track/4.fix new file mode 100644 index 0000000..8699ddc --- /dev/null +++ b/t/var/fixtures/excludes/track/4.fix @@ -0,0 +1,9 @@ +$HASH1 = { + cd => 2, + last_updated_on + => undef, + position + => 1, + title => 'Stung with Success', + trackid => 4 + }; diff --git a/t/var/fixtures/excludes/track/5.fix b/t/var/fixtures/excludes/track/5.fix new file mode 100644 index 0000000..1b8cdb4 --- /dev/null +++ b/t/var/fixtures/excludes/track/5.fix @@ -0,0 +1,9 @@ +$HASH1 = { + cd => 2, + last_updated_on + => undef, + position + => 2, + title => 'Stripy', + trackid => 5 + }; diff --git a/t/var/fixtures/excludes/track/6.fix b/t/var/fixtures/excludes/track/6.fix new file mode 100644 index 0000000..5ad6ff4 --- /dev/null +++ b/t/var/fixtures/excludes/track/6.fix @@ -0,0 +1,9 @@ +$HASH1 = { + cd => 2, + last_updated_on + => undef, + position + => 3, + title => 'Sticky Honey', + trackid => 6 + }; diff --git a/t/var/fixtures/excludes/track/7.fix b/t/var/fixtures/excludes/track/7.fix new file mode 100644 index 0000000..7d1ffd8 --- /dev/null +++ b/t/var/fixtures/excludes/track/7.fix @@ -0,0 +1,9 @@ +$HASH1 = { + cd => 3, + last_updated_on + => undef, + position + => 1, + title => 'Yowlin', + trackid => 7 + }; diff --git a/t/var/fixtures/excludes/track/8.fix b/t/var/fixtures/excludes/track/8.fix new file mode 100644 index 0000000..1e5a7fd --- /dev/null +++ b/t/var/fixtures/excludes/track/8.fix @@ -0,0 +1,9 @@ +$HASH1 = { + cd => 3, + last_updated_on + => undef, + position + => 2, + title => 'Howlin', + trackid => 8 + }; diff --git a/t/var/fixtures/excludes/track/9.fix b/t/var/fixtures/excludes/track/9.fix new file mode 100644 index 0000000..3679235 --- /dev/null +++ b/t/var/fixtures/excludes/track/9.fix @@ -0,0 +1,9 @@ +$HASH1 = { + cd => 3, + last_updated_on + => '2007-10-20 00:00:00', + position + => 3, + title => 'Fowlin', + trackid => 9 + }; diff --git a/t/var/fixtures/multi/date.json/CD/3.fix b/t/var/fixtures/multi/date.json/CD/3.fix new file mode 100644 index 0000000..96c1068 --- /dev/null +++ b/t/var/fixtures/multi/date.json/CD/3.fix @@ -0,0 +1,6 @@ +$HASH1 = { + artist => 1, + cdid => 3, + title => 'Caterwaulin\' Blues', + year => 1997 + }; diff --git a/t/var/fixtures/multi/date.json/_config_set b/t/var/fixtures/multi/date.json/_config_set new file mode 100644 index 0000000..005a557 --- /dev/null +++ b/t/var/fixtures/multi/date.json/_config_set @@ -0,0 +1,20 @@ +$VAR1 = { + 'sets' => [ + { + 'class' => 'Track', + 'ids' => [ + '9' + ] + } + ], + 'belongs_to' => { + 'fetch' => 1 + }, + 'has_many' => { + 'fetch' => 0 + }, + 'might_have' => { + 'fetch' => 0 + }, + 'datetime_relative' => '2007-10-30 00:00:00' + }; diff --git a/t/var/fixtures/multi/date.json/_dumper_version b/t/var/fixtures/multi/date.json/_dumper_version new file mode 100644 index 0000000..85690d1 --- /dev/null +++ b/t/var/fixtures/multi/date.json/_dumper_version @@ -0,0 +1 @@ +1.001029 \ No newline at end of file diff --git a/t/var/fixtures/multi/date.json/artist/1.fix b/t/var/fixtures/multi/date.json/artist/1.fix new file mode 100644 index 0000000..cd82bac --- /dev/null +++ b/t/var/fixtures/multi/date.json/artist/1.fix @@ -0,0 +1,4 @@ +$HASH1 = { + artistid => 1, + name => 'Caterwauler McCrae' + }; diff --git a/t/var/fixtures/multi/date.json/track/9.fix b/t/var/fixtures/multi/date.json/track/9.fix new file mode 100644 index 0000000..f9c9e67 --- /dev/null +++ b/t/var/fixtures/multi/date.json/track/9.fix @@ -0,0 +1,19 @@ +$HASH1 = { + cd => 3, + last_updated_on + => { + days => -10, + end_of_month + => 'wrap', + minutes => 0, + months => 0, + nanoseconds + => 0, + seconds => 0 + }, + position + => 3, + title => 'Fowlin', + trackid => 9 + }; +bless( $HASH1->{last_updated_on}, 'DateTime::Duration' ); diff --git a/t/var/fixtures/multi/rules.json/CD/2.fix b/t/var/fixtures/multi/rules.json/CD/2.fix new file mode 100644 index 0000000..a6b679a --- /dev/null +++ b/t/var/fixtures/multi/rules.json/CD/2.fix @@ -0,0 +1,6 @@ +$HASH1 = { + artist => 1, + cdid => 2, + title => 'Forkful of bees', + year => 2001 + }; diff --git a/t/var/fixtures/multi/rules.json/CD/5.fix b/t/var/fixtures/multi/rules.json/CD/5.fix new file mode 100644 index 0000000..0912382 --- /dev/null +++ b/t/var/fixtures/multi/rules.json/CD/5.fix @@ -0,0 +1,6 @@ +$HASH1 = { + artist => 2, + cdid => 5, + title => "Unicode Chars \x{2122} \251 \x{2022} \x{2020} \x{2211} \x{3b1} \x{3b2} \253 \273 \x{2192} \x{2026}", + year => 2015 + }; diff --git a/t/var/fixtures/multi/rules.json/_config_set b/t/var/fixtures/multi/rules.json/_config_set new file mode 100644 index 0000000..2cc6621 --- /dev/null +++ b/t/var/fixtures/multi/rules.json/_config_set @@ -0,0 +1,54 @@ +$VAR1 = { + 'might_have' => { + 'fetch' => 0 + }, + 'rules' => { + 'might_have' => { + 'fetch' => 0 + }, + 'CD' => { + 'join' => [ + 'tags' + ], + 'fetch' => [ + { + 'cond' => { + 'position' => 2 + }, + 'rel' => 'tracks' + } + ], + 'cond' => [ + { + 'tags.tag' => 'Cheesy' + } + ] + } + }, + 'sets' => [ + { + 'ids' => [ + '5' + ], + 'class' => 'CD' + }, + { + 'ids' => [ + '1' + ], + 'fetch' => [ + { + 'rel' => 'cds', + 'quantity' => 'all' + } + ], + 'class' => 'Artist' + } + ], + 'belongs_to' => { + 'fetch' => 1 + }, + 'has_many' => { + 'fetch' => 0 + } + }; diff --git a/t/var/fixtures/multi/rules.json/_dumper_version b/t/var/fixtures/multi/rules.json/_dumper_version new file mode 100644 index 0000000..85690d1 --- /dev/null +++ b/t/var/fixtures/multi/rules.json/_dumper_version @@ -0,0 +1 @@ +1.001029 \ No newline at end of file diff --git a/t/var/fixtures/multi/rules.json/artist/1.fix b/t/var/fixtures/multi/rules.json/artist/1.fix new file mode 100644 index 0000000..cd82bac --- /dev/null +++ b/t/var/fixtures/multi/rules.json/artist/1.fix @@ -0,0 +1,4 @@ +$HASH1 = { + artistid => 1, + name => 'Caterwauler McCrae' + }; diff --git a/t/var/fixtures/multi/rules.json/artist/2.fix b/t/var/fixtures/multi/rules.json/artist/2.fix new file mode 100644 index 0000000..997aaaf --- /dev/null +++ b/t/var/fixtures/multi/rules.json/artist/2.fix @@ -0,0 +1,4 @@ +$HASH1 = { + artistid => 2, + name => 'Random Boy Band' + }; diff --git a/t/var/fixtures/multi/rules.json/track/14.fix b/t/var/fixtures/multi/rules.json/track/14.fix new file mode 100644 index 0000000..1fcd807 --- /dev/null +++ b/t/var/fixtures/multi/rules.json/track/14.fix @@ -0,0 +1,9 @@ +$HASH1 = { + cd => 5, + last_updated_on + => undef, + position + => 2, + title => 'Under The Weather', + trackid => 14 + }; diff --git a/t/var/fixtures/multi/rules.json/track/5.fix b/t/var/fixtures/multi/rules.json/track/5.fix new file mode 100644 index 0000000..1b8cdb4 --- /dev/null +++ b/t/var/fixtures/multi/rules.json/track/5.fix @@ -0,0 +1,9 @@ +$HASH1 = { + cd => 2, + last_updated_on + => undef, + position + => 2, + title => 'Stripy', + trackid => 5 + }; diff --git a/t/var/fixtures/test_file b/t/var/fixtures/test_file new file mode 100644 index 0000000..bdf08de --- /dev/null +++ b/t/var/fixtures/test_file @@ -0,0 +1 @@ +test file \ No newline at end of file