[Bps-public-commit] net-lighthouse branch, master, updated. 98332cb5cbef5a5af4bbf3214cd0aa02313c7886

sunnavy at bestpractical.com sunnavy at bestpractical.com
Thu Aug 27 04:14:33 EDT 2009


The branch, master has been updated
       via  98332cb5cbef5a5af4bbf3214cd0aa02313c7886 (commit)
      from  11557fa10f4dae4bb4f9fe06f0e551385ceb29b9 (commit)

Summary of changes:
 t/12-ticket-bin.t |   24 ++++++++++++++++++++++++
 1 files changed, 24 insertions(+), 0 deletions(-)
 create mode 100644 t/12-ticket-bin.t

- Log -----------------------------------------------------------------
commit 98332cb5cbef5a5af4bbf3214cd0aa02313c7886
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Thu Aug 27 16:14:29 2009 +0800

    test attr for bin

diff --git a/t/12-ticket-bin.t b/t/12-ticket-bin.t
new file mode 100644
index 0000000..977f623
--- /dev/null
+++ b/t/12-ticket-bin.t
@@ -0,0 +1,24 @@
+use strict;
+use warnings;
+
+use Test::More tests => 15;
+use Test::Mock::LWP;
+
+use_ok('Net::Lighthouse::Project');
+use_ok('Net::Lighthouse::Project::TicketBin');
+can_ok( 'Net::Lighthouse::Project::TicketBin', 'new' );
+
+my $bin = Net::Lighthouse::Project::TicketBin->new;
+isa_ok( $bin, 'Net::Lighthouse::Project::TicketBin' );
+isa_ok( $bin, 'Net::Lighthouse' );
+
+my @attrs = (
+    'query',      'user_id', 'position',   'name',
+    'default',    'shared',  'project_id', 'tickets_count',
+    'updated_at', 'id'
+);
+
+for my $attr (@attrs) {
+    can_ok( $bin, $attr );
+}
+

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list