Changes to support the Moose version.
This commit is contained in:
parent
f9cee540f3
commit
e405f0ee4e
1 changed files with 3 additions and 7 deletions
|
@ -1,14 +1,10 @@
|
|||
use Test::More tests => 12;
|
||||
use Test::More tests => 10;
|
||||
BEGIN { use_ok('Parse::RPM::Spec') };
|
||||
|
||||
eval { my $spec = Parse::RPM::Spec->new(\'t/file.spec') };
|
||||
ok($@);
|
||||
like($@, qr/SCALAR/);
|
||||
|
||||
ok($spec = Parse::RPM::Spec->new('t/file.spec'));
|
||||
ok($spec = Parse::RPM::Spec->new( { file => 't/file.spec' } ));
|
||||
isa_ok($spec, 'Parse::RPM::Spec');
|
||||
|
||||
ok($spec = Parse::RPM::Spec->new({ file => 't/file.spec' }));
|
||||
ok($spec = Parse::RPM::Spec->new( { file => 't/file.spec' } ));
|
||||
isa_ok($spec, 'Parse::RPM::Spec');
|
||||
|
||||
is($spec->name, 'perl-Array-Compare');
|
||||
|
|
Loading…
Add table
Reference in a new issue