[Bps-public-commit] net-lighthouse branch, master, updated. 65ed3db052b55a49d9a8dc17f5d7df7c589c9278

sunnavy at bestpractical.com sunnavy at bestpractical.com
Fri Sep 11 11:48:03 EDT 2009


The branch, master has been updated
       via  65ed3db052b55a49d9a8dc17f5d7df7c589c9278 (commit)
      from  6d14548b217ce3dee4751cd06d9fe0fe66a40699 (commit)

Summary of changes:
 lib/Net/Lighthouse/Project/Ticket/Attachment.pm |    4 ++--
 t/05-ticket-attachment.t                        |    6 ++----
 2 files changed, 4 insertions(+), 6 deletions(-)

- Log -----------------------------------------------------------------
commit 65ed3db052b55a49d9a8dc17f5d7df7c589c9278
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Sep 11 23:47:58 2009 +0800

    no type attr for Attachment.pm

diff --git a/lib/Net/Lighthouse/Project/Ticket/Attachment.pm b/lib/Net/Lighthouse/Project/Ticket/Attachment.pm
index 0ba46c9..7b5c0be 100644
--- a/lib/Net/Lighthouse/Project/Ticket/Attachment.pm
+++ b/lib/Net/Lighthouse/Project/Ticket/Attachment.pm
@@ -15,7 +15,7 @@ has [ 'width', 'height', 'size', 'uploader_id', 'id', ] => (
     is  => 'ro',
 );
 
-has [ 'content_type', 'filename', 'url', 'type', 'code' ] => (
+has [ 'content_type', 'filename', 'url', 'code' ] => (
     isa => 'Str',
     is  => 'ro',
 );
@@ -78,7 +78,7 @@ ro, DateTime, UTC based
 
 ro, Maybe Int
 
-=item content_type, filename, url, type, code
+=item content_type, filename, url, code
 
 ro, Str
 
diff --git a/t/05-ticket-attachment.t b/t/05-ticket-attachment.t
index 5e7bd8a..a61d31a 100644
--- a/t/05-ticket-attachment.t
+++ b/t/05-ticket-attachment.t
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-use Test::More tests => 29;
+use Test::More tests => 27;
 use DateTime;
 
 use_ok('Net::Lighthouse::Project::Ticket::Attachment');
@@ -13,8 +13,7 @@ isa_ok( $attachment, 'Net::Lighthouse::Project::Ticket::Attachment' );
 my @attrs = (
     'width',        'created_at',  'height',   'size',
     'content_type', 'uploader_id', 'filename', 'url',
-    'type',         'id',          'code',
-    'content', 'ua',
+    'id',           'code',        'content',  'ua',
 );
 
 for my $attr (@attrs) {
@@ -46,7 +45,6 @@ my %hash = (
     ),
     'filename'     => 'first',
     'url'  => 'http://sunnavy.lighthouseapp.com/attachments/249828/first',
-    'type' => 'Attachment',
     'id'   => 249828,
     'code' => '5ace4f26de37855e951eb13f5b07a1b1a0919466'
 

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



More information about the Bps-public-commit mailing list