X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Frelationship%2Fcore.t;h=e86dfc6d771ef5dd0d784d7dd1e92ace366858a6;hb=3f8affda61edb3a04cf3ed3b8349c06f3d5c7858;hp=23d829debccdc8b08507563ec065dda6c782f50b;hpb=579472dfc78ac84183a7f6b3a99b815e0a90b321;p=dbsrgits%2FDBIx-Class.git diff --git a/t/relationship/core.t b/t/relationship/core.t index 23d829d..e86dfc6 100644 --- a/t/relationship/core.t +++ b/t/relationship/core.t @@ -136,6 +136,10 @@ lives_ok( 'No back rel' ); +throws_ok { + my $new_bookmark = $schema->resultset("Bookmark")->new_result( {} ); + $new_bookmark->new_related( no_such_rel => {} ); +} qr/No such relationship 'no_such_rel'/, 'creating in uknown rel throws'; { local $TODO = "relationship checking needs fixing";