-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,3 +19,4 @@ META.yml | |
MYMETA.json | ||
t/00-load.t | ||
t/02-live.t | ||
t/10-traitfor-rpminfo.t |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/usr/bin/env perl | ||
############################################################################# | ||
# | ||
# Author: Chris Weyl (cpan:RSRCHBOY), <cweyl@alumni.drew.edu> | ||
# Company: No company, personal work | ||
# Created: 05/08/2010 | ||
# | ||
# Copyright (c) 2010 <cweyl@alumni.drew.edu> | ||
# | ||
# This library is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU Lesser General Public | ||
# License as published by the Free Software Foundation; either | ||
# version 2.1 of the License, or (at your option) any later version. | ||
# | ||
############################################################################# | ||
|
||
=head1 DESCRIPTION | ||
This test exercises applying the RPMInfo trait. | ||
=head1 TESTS | ||
This module defines the following tests. | ||
=cut | ||
|
||
use strict; | ||
use warnings; | ||
|
||
use Test::More; | ||
use Test::Moose; | ||
|
||
use CPAN::MetaMuncher; | ||
|
||
my $class = CPAN::MetaMuncher->with_traits('RPMInfo'); | ||
|
||
diag "classname: $class"; | ||
|
||
isa_ok $class, 'CPAN::MetaMuncher'; | ||
|
||
meta_ok $class; | ||
does_ok $class, 'CPAN::MetaMuncher::TraitFor::RPMInfo'; | ||
has_attribute_ok $class, '_rpm_requires'; | ||
has_attribute_ok $class, '_rpm_build_requires'; | ||
|
||
done_testing; | ||
__END__ | ||
=head1 AUTHOR | ||
Chris Weyl <cweyl@alumni.drew.edu> | ||
=cut | ||