Permalink
Browse files

New tests for rt bug counts

  • Loading branch information...
1 parent bbd6c56 commit 5850ffa3e0d10e2f27f0ee329f961f3eedf6e168 @wolfsage committed with monken Jan 15, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 t/release/bugs.t
View
7 t/release/bugs.t
@@ -6,6 +6,7 @@ use MetaCPAN::Model;
my $model = MetaCPAN::Model->new( es => ':9900' );
my $idx = $model->index('cpan');
+<<<<<<< HEAD
my $release = $idx->type('distribution')->get('Moose');
is( $release->name, 'Moose', 'Got correct release' );
@@ -14,4 +15,10 @@ is( $release->bugs->[0]->{source}, 'http://rt.cpan.org/NoAuth/Bugs.html?Dist=Moo
is( $release->bugs->[0]->{active}, 39, 'Got correct bug count (active)' );
is( $release->bugs->[0]->{stalled}, 4, 'Got correct bug count (stalled)' );
+my $release = $idx->type('distribution')->get('Moose');
+
+is($release->name, 'Moose', 'Got correct release');
+
+is($release->rt_bug_count, 39, 'Got correct bug count');
+
done_testing;

0 comments on commit 5850ffa

Please sign in to comment.