From: Tim Bunce Date: Fri, 8 May 2009 14:24:58 +0000 (+0000) Subject: Fix t/var/configs/*.json to use valid JSON syntax. X-Git-Tag: v1.001002~3 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=401a9e9b11634f5508f0f9f9340a722e518b1e74;p=dbsrgits%2FDBIx-Class-Fixtures.git Fix t/var/configs/*.json to use valid JSON syntax. --- diff --git a/Changes b/Changes index 4479b0f..5a60e25 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,7 @@ Revision history for DBIx-Class-Fixtures +- Fix t/var/configs/*.json to use valid JSON syntax + 1.001002 - Allow passing schema object to ->populate - Check that fixture population dir was created diff --git a/t/var/configs/date.json b/t/var/configs/date.json index 2fc932c..c703c05 100644 --- a/t/var/configs/date.json +++ b/t/var/configs/date.json @@ -1,13 +1,13 @@ { - might_have: { - fetch: 0 + "might_have": { + "fetch": 0 }, - has_many: { - fetch: 0 + "has_many": { + "fetch": 0 }, - sets: [{ - class: 'Track', - ids: ['9'] + "sets": [{ + "class": "Track", + "ids": ["9"] }], - datetime_relative : "2007-10-30 00:00:00" + datetime_relative : "2007-10-30 "00":"00":00" } diff --git a/t/var/configs/fetch.json b/t/var/configs/fetch.json index 30d6685..7c042ea 100644 --- a/t/var/configs/fetch.json +++ b/t/var/configs/fetch.json @@ -1,23 +1,23 @@ { - might_have: { - fetch: 0 + "might_have": { + "fetch": 0 }, - has_many: { - fetch: 0 + "has_many": { + "fetch": 0 }, - sets: [{ - class: 'Artist', - ids: ['1'], - fetch: [{ - rel: cds, - quantity: all + "sets": [{ + "class": "Artist", + "ids": ["1"], + "fetch": [{ + "rel": "cds", + "quantity": "all" }] }, { - class: 'Artist', - ids: ['2'], - fetch: [{ - rel: cds, - cond: { year: {'>': 2002} } + "class": "Artist", + "ids": ["2"], + "fetch": [{ + "rel": "cds", + "cond": { "year": {">": 2002} } }] }] -} \ No newline at end of file +} diff --git a/t/var/configs/includes.json b/t/var/configs/includes.json index 9bc22b5..edee8a7 100644 --- a/t/var/configs/includes.json +++ b/t/var/configs/includes.json @@ -1,15 +1,15 @@ { - might_have: { - fetch: 0 + "might_have": { + "fetch": 0 }, - has_many: { - fetch: 0 + "has_many": { + "fetch": 0 }, - sets: [{ - class: 'Producer', - quantity: 1 + "sets": [{ + "class": "Producer", + "quantity": 1 }], - includes: [{ - file: 'simple.json' + "includes": [{ + "file": "simple.json" }] } diff --git a/t/var/configs/quantity.json b/t/var/configs/quantity.json index d4f9ba4..c63ca21 100644 --- a/t/var/configs/quantity.json +++ b/t/var/configs/quantity.json @@ -1,12 +1,12 @@ { - might_have: { - fetch: 0 + "might_have": { + "fetch": 0 }, - has_many: { - fetch: 0 + "has_many": { + "fetch": 0 }, - sets: [{ - class: 'CD', - quantity: 3 + "sets": [{ + "class": "CD", + "quantity": 3 }] } \ No newline at end of file diff --git a/t/var/configs/rules.json b/t/var/configs/rules.json index b02a286..6d44f93 100644 --- a/t/var/configs/rules.json +++ b/t/var/configs/rules.json @@ -1,29 +1,29 @@ { - might_have: { - fetch: 0 + "might_have": { + "fetch": 0 }, - has_many: { - fetch: 0 + "has_many": { + "fetch": 0 }, - sets: [{ - class: 'CD', - ids: ['5'] + "sets": [{ + "class": "CD", + "ids": ["5"] }, { - class: 'Artist', - ids: ['1'], - fetch: [{ - rel: cds, - quantity: all + "class": "Artist", + "ids": ["1"], + "fetch": [{ + "rel": "cds", + "quantity": "all" }] }], - rules: { - 'CD': { - cond: [{ 'tags.tag': 'Cheesy' }], - join: ['tags'], - fetch: [{ - rel: tracks, - cond: { position: 2 } + "rules": { + "CD": { + "cond": [{ "tags.tag": "Cheesy" }], + "join": ["tags"], + "fetch": [{ + "rel": "tracks", + "cond": { "position": 2 } }] } } -} \ No newline at end of file +} diff --git a/t/var/configs/sample.json b/t/var/configs/sample.json index e218d4c..6ec7527 100644 --- a/t/var/configs/sample.json +++ b/t/var/configs/sample.json @@ -1,40 +1,40 @@ { - might_have: { - fetch: 0 + "might_have": { + "fetch": 0 }, - has_many: { - fetch: 0 + "has_many": { + "fetch": 0 }, - sets: [{ - class: 'User', - cond: { photo_count: { '<': 5 } }, - quantity: 3, - datetime_relative: today, - fetch: [{ - rel: comments, - cond: { comments: { '!=': 'faks' }}, - quantity: 2 + "sets": [{ + "class": "User", + "cond": { "photo_count": { "<": 5 } }, + "quantity": 3, + "datetime_relative": today, + "fetch": [{ + "rel": comments, + "cond": { "comments": { "!=": "faks" }}, + "quantity": 2 }] }, { - class: 'User', - cond: { photo_count: { '>=': 5 } }, - quantity: 3 + "class": "User", + "cond": { "photo_count": { ">=": 5 } }, + "quantity": 3 }, { - class: 'Video', - quantity: 3 + "class": "Video", + "quantity": 3 }, { - class: 'FeaturedVideo', - quantity: 3 + "class": "FeaturedVideo", + "quantity": 3 }], - rules: { - 'User': { - cond: { video_count: { '>=': 5 } } + "rules": { + "User": { + "cond": { "video_count": { ">=": 5 } } }, - 'Video': { - fetch: [{ - rel: user_videos, - cond: { me.fk_user_id: '\= video.fk_owner_id' }, - join: 'video' + "Video": { + "fetch": [{ + "rel": user_videos, + "cond": { me."fk_user_id": "\= video.fk_owner_id" }, + "join": "video" }] } } diff --git a/t/var/configs/scalar_ref.json b/t/var/configs/scalar_ref.json index a1bd2f6..80f06a1 100644 --- a/t/var/configs/scalar_ref.json +++ b/t/var/configs/scalar_ref.json @@ -1,17 +1,17 @@ { - might_have: { - fetch: 0 + "might_have": { + "fetch": 0 }, - has_many: { - fetch: 0 + "has_many": { + "fetch": 0 }, - sets: [{ - class: 'Artist', - cond: { me.name: '\= "We Are Goth"' }, - quantity: all, - fetch: [{ - rel: 'cds', - cond: { 'me.title': '\LIKE "%with us"' } + "sets": [{ + "class": "Artist", + "cond": { "me.name": "\\= \"We Are Goth\"" }, + "quantity": "all", + "fetch": [{ + "rel": "cds", + "cond": { "me.title": "\\LIKE \"%with us\"" } }] }] -} \ No newline at end of file +} diff --git a/t/var/configs/simple.json b/t/var/configs/simple.json index 7abd148..44754a3 100644 --- a/t/var/configs/simple.json +++ b/t/var/configs/simple.json @@ -1,12 +1,12 @@ { - might_have: { - fetch: 0 + "might_have": { + "fetch": 0 }, - has_many: { - fetch: 0 + "has_many": { + "fetch": 0 }, - sets: [{ - class: 'Artist', - quantity: 1 + "sets": [{ + "class": "Artist", + "quantity": 1 }] } \ No newline at end of file