X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F60core.t;h=d848a9154747763c675e6be587813bac0294b3ff;hb=2131aa2eac548e0b10325b97c10d22a61fffd9c9;hp=f92159b290128fadf702c3b87ba0f3f0f03f6623;hpb=76cc4546dfc51e7d83add9a90af1eb2d5a7d156c;p=dbsrgits%2FDBIx-Class.git diff --git a/t/60core.t b/t/60core.t index f92159b..d848a91 100644 --- a/t/60core.t +++ b/t/60core.t @@ -576,13 +576,15 @@ lives_ok (sub { my $newlink = $newbook->link}, "stringify to false value doesn't { my $new_artist = $schema->resultset('Artist')->new({}); isa_ok( $new_artist, 'DBIx::Class::Row', '$rs->new gives a row object' ); + lives_ok { $new_artist->insert() } 'inserting without specifying any columns works'; + $new_artist->discard_changes; + $new_artist->delete; } - # make sure we got rid of the compat shims SKIP: { my $remove_version = 0.083; - skip "Remove in $remove_version", 3 if $DBIx::Class::VERSION < $remove_version; + skip "Remove in $remove_version", 3 if DBIx::Class->VERSION < $remove_version; for (qw/compare_relationship_keys pk_depends_on resolve_condition/) { ok (! DBIx::Class::ResultSource->can ($_), "$_ no longer provided by DBIx::Class::ResultSource, removed before $remove_version"); @@ -625,7 +627,7 @@ SKIP: { #------------------------------ # SKIP: { - skip "Something needs to be done before 0.09", 2 if $DBIx::Class::VERSION < 0.09; + skip "Something needs to be done before 0.09", 2 if DBIx::Class->VERSION < 0.09; my $row = $schema->resultset ('Artist')->next;