X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2F90ensure_class_loaded.t;h=c901d06b465192847c0c7b0ab407f7d7a8f09b07;hb=e7d1440fa81ee32af07118f85cd0310e48e14e09;hp=4da8a75075492b7831587749c0a06ca76abf9de4;hpb=175e261686dfde702e3539a47707024260c877b2;p=dbsrgits%2FDBIx-Class-Historic.git diff --git a/t/90ensure_class_loaded.t b/t/90ensure_class_loaded.t index 4da8a75..c901d06 100644 --- a/t/90ensure_class_loaded.t +++ b/t/90ensure_class_loaded.t @@ -63,10 +63,13 @@ ok( Class::Inspector->loaded('DBICTest::FakeComponent'), $warning =~ /Missing operator before/ ); }; - eval { $schema->load_optional_class('DBICTest::SyntaxErrorComponent') }; - like( $@, qr/syntax error/, 'DBICTest::ErrorComponent threw ok' ); - eval { $schema->ensure_class_loaded('DBICTest::SyntaxErrorComponent') }; - like( $@, qr/syntax error/, 'DBICTest::ErrorComponent threw ok' ); + + eval { $schema->ensure_class_loaded('DBICTest::SyntaxErrorComponent1') }; + like( $@, qr/syntax error/, + 'ensure_class_loaded(DBICTest::SyntaxErrorComponent1) threw ok' ); + eval { $schema->load_optional_class('DBICTest::SyntaxErrorComponent2') }; + like( $@, qr/syntax error/, + 'load_optional_class(DBICTest::SyntaxErrorComponent2) threw ok' ); } 1;