Skip to content

Commit

Permalink
initial traitfor tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rsrchboy committed May 8, 2010
1 parent 2328830 commit 4ef316a
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
1 change: 1 addition & 0 deletions MANIFEST
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ META.yml
MYMETA.json
t/00-load.t
t/02-live.t
t/10-traitfor-rpminfo.t
55 changes: 55 additions & 0 deletions t/10-traitfor-rpminfo.t
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

0 comments on commit 4ef316a

Please sign in to comment.