From: Matt S Trout Date: Sat, 13 Sep 2008 16:28:48 +0000 (+0000) Subject: use unlike in test to make error report more useful X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2127f7aad061b8b4c37fb40b9fb459fe818279dc;p=dbsrgits%2FDBIx-Class-Historic.git use unlike in test to make error report more useful --- diff --git a/t/18inserterror.t b/t/18inserterror.t index 005209a..2efb8d5 100644 --- a/t/18inserterror.t +++ b/t/18inserterror.t @@ -24,6 +24,6 @@ my $schema = DBICTest->init_schema; ->create({ title => 'vacation in antarctica' }) }; like $@, qr/NULL/; # as opposed to some other error - ok( $warnings !~ /uninitialized value/, "No warning from Storage" ); + unlike( $warnings, qr/uninitialized value/, "No warning from Storage" ); }