don't depend on Test::Exception
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 4 Feb 2010 12:54:00 +0000 (12:54 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 4 Feb 2010 12:54:00 +0000 (12:54 +0000)
git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/MARC-Fast/trunk@29 49f9634a-d7ec-0310-8e6b-ec35c6cc8804

Makefile.PL
t/001_marc.t

index 61980d2..f145e17 100644 (file)
@@ -8,7 +8,6 @@ WriteMakefile(
     ABSTRACT     => '',
     PREREQ_PM    => {
        'Test::Simple' => 0.44,
     ABSTRACT     => '',
     PREREQ_PM    => {
        'Test::Simple' => 0.44,
-       'Test::Exception' => 0,
        'Data::Dump' => 0,
        'Carp' => 0,
     },
        'Data::Dump' => 0,
        'Carp' => 0,
     },
index ddbee94..ddb9070 100755 (executable)
@@ -4,7 +4,6 @@ use strict;
 use blib;
 
 use Test::More tests => 63;
 use blib;
 
 use Test::More tests => 63;
-use Test::Exception;
 use Data::Dump qw/dump/;
 
 BEGIN {
 use Data::Dump qw/dump/;
 
 BEGIN {
@@ -18,11 +17,13 @@ my $marc_file = 't/camel.usmarc';
 my $marc;
 my %param;
 
 my $marc;
 my %param;
 
-throws_ok { $marc = MARC::Fast->new(%param); } qr/marcdb/, "marcdb parametar";
+eval { $marc = MARC::Fast->new(%param) };
+ok( $@ =~ /marcdb/, "marcdb parametar" );
 
 $param{marcdb} = '/foo/bar/file';
 
 
 $param{marcdb} = '/foo/bar/file';
 
-throws_ok { $marc = MARC::Fast->new(%param); } qr/foo.bar/, "marcdb exist";
+eval { $marc = MARC::Fast->new(%param) };
+ok( $@ =~ /foo.bar/, "marcdb exist" );
 
 $param{marcdb} = $marc_file if -e $marc_file;
 
 
 $param{marcdb} = $marc_file if -e $marc_file;