Adding a simple test to ensure Peace::Model::Build can be instanced.

This commit is contained in:
sergiotarxz 2022-03-27 23:47:58 +02:00
parent 9f5d36fa89
commit 29b115ca00

View File

@ -4,8 +4,21 @@ use v5.30.0;
use strict;
use warnings;
use Test::Most tests => 1;
use Test::Most tests => 2;
use Peace::Test::Mock::Model::Release;
BEGIN {
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.';
}