[DBIx-Class-Devel] [dbix-class] Postpone 'create_related' rows until main row is created (#78)

Peter Rabbitson notifications at github.com
Thu May 14 21:38:30 GMT 2015


@KES777 Actually, looking at the overall diff there seems to be no test case for the actual problem you encountered. At this point in the project's lifetime there must be an integration (not unit) test for almost every behavioral change. Please, if time permits adapt the test from https://rt.cpan.org/Ticket/Display.html?id=104375#txn-1495758 as a proper .t based on DBICTest->init_schema. For the `sub new ...` part use an early load as seen here: https://github.com/dbsrgits/dbix-class/blob/current/blead/t/73oracle_blob.t#L13-L27

You asked in https://rt.cpan.org/Ticket/Display.html?id=104375#txn-1495758 whether the current test schema/fixture are documented. They unfortunately aren't, several people attempted to and ended up with nothing so far. The main set of relations is
```
Artist => CDs => Tracks => cd_single (back to CDs)
```
There are other tables as well, but the main part of tests run against these. The preloaded data can be found here: https://github.com/dbsrgits/dbix-class/blob/current/blead/t/lib/DBICTest.pm#L428. Alternatively you can elect to populate the schema yourself: https://github.com/dbsrgits/dbix-class/blob/current/blead/t/prefetch/manual.t#L13-L48

Cheers!




---
Reply to this email directly or view it on GitHub:
https://github.com/dbsrgits/dbix-class/pull/78#issuecomment-102177670
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.scsys.co.uk/pipermail/dbix-class-devel/attachments/20150514/b42c9f57/attachment.htm>


More information about the DBIx-Class-Devel mailing list