Adding a simple test to ensure Peace::Model::Build can be instanced.
This commit is contained in:
parent
9f5d36fa89
commit
29b115ca00
@ -4,8 +4,21 @@ use v5.30.0;
|
|||||||
use strict;
|
use strict;
|
||||||
use warnings;
|
use warnings;
|
||||||
|
|
||||||
use Test::Most tests => 1;
|
use Test::Most tests => 2;
|
||||||
|
|
||||||
|
use Peace::Test::Mock::Model::Release;
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
use_ok('Peace::Model::Build');
|
use_ok('Peace::Model::Build');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
## GIVEN
|
||||||
|
my $release = Peace::Test::Mock::Model::Release->new;
|
||||||
|
my $arch = 'x86';
|
||||||
|
my $build = Peace::Model::Build->new(
|
||||||
|
release => $release,
|
||||||
|
arch => $arch,
|
||||||
|
);
|
||||||
|
ok $build->isa('Peace::Model::Build'), 'Build is made of Peace::Model::Build.';
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user