[Bps-public-commit] net-lighthouse branch, master, updated. 2829860561bc2bb8f2f38b3001ae6155ab4b5408

sunnavy at bestpractical.com sunnavy at bestpractical.com
Mon Sep 7 04:58:26 EDT 2009


The branch, master has been updated
       via  2829860561bc2bb8f2f38b3001ae6155ab4b5408 (commit)
      from  71c09e62c131dda5fada2d01861802bb1f4dcecb (commit)

Summary of changes:
 t/02-project.t           |    6 +++---
 t/03-ticket.t            |    8 ++++----
 t/04-ticket-version.t    |    2 +-
 t/05-ticket-attachment.t |    2 +-
 t/06-user.t              |    2 +-
 t/07-user-membership.t   |    2 +-
 t/08-token.t             |    2 +-
 t/09-milestone.t         |    4 ++--
 t/10-changeset.t         |    4 ++--
 t/11-message.t           |    4 ++--
 t/12-ticket-bin.t        |    4 ++--
 11 files changed, 20 insertions(+), 20 deletions(-)

- Log -----------------------------------------------------------------
commit 2829860561bc2bb8f2f38b3001ae6155ab4b5408
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Mon Sep 7 16:58:22 2009 +0800

    typo fix

diff --git a/t/02-project.t b/t/02-project.t
index 00a0a8c..a3c337e 100644
--- a/t/02-project.t
+++ b/t/02-project.t
@@ -54,7 +54,7 @@ $Mock_response->mock(
 
 my $sd = Net::Lighthouse::Project->new( account => 'sunnavy' );
 my $load = $sd->load(35918);
-is( $sd, $load, 'load return $self' );
+is( $sd, $load, 'load returns $self' );
 
 my %hash = (
     'description_html' => '<div><p>test for sd</p></div>',
@@ -132,9 +132,9 @@ is( scalar @projects, 2,     'number of projects' );
 is( $projects[0]->id, 35918, 'id of 2nd project' );
 is( $projects[1]->id, 36513, 'id of 2nd project' );
 is_deeply( $projects[0], $sd,
-    'load and list should return the same info for one project' );
+    'load and list returns the same info for one project' );
 
-is_deeply( scalar $p->list, \@projects, 'list return array ref in scalar context' );
+is_deeply( scalar $p->list, \@projects, 'list returns array ref in scalar context' );
 
 # test for initial_state
 $Mock_response->mock(
diff --git a/t/03-ticket.t b/t/03-ticket.t
index eb02a80..e4af96a 100644
--- a/t/03-ticket.t
+++ b/t/03-ticket.t
@@ -52,7 +52,7 @@ my $n1 = Net::Lighthouse::Project::Ticket->new(
     project_id => 35918,
 );
 my $load = $n1->load(1);
-is( $load, $n1, 'load return $self' );
+is( $load, $n1, 'load returns $self' );
 
 my %hash = (
     'priority'          => 1,
@@ -99,12 +99,12 @@ for my $k ( keys %hash ) {
 }
 
 is( @{$n1->versions}, 1, 'version number' );
-is_deeply( scalar $n1->versions, [ $n1->versions ], 'versions return arrayref in scalar context' );
+is_deeply( scalar $n1->versions, [ $n1->versions ], 'versions returns arrayref in scalar context' );
 isa_ok( $n1->versions->[0], 'Net::Lighthouse::Project::Ticket::Version' );
 is( $n1->versions->[0]->creator_id, 67166, 'version creator_id' );
 
 is( @{$n1->attachments}, 2, 'attachment number' );
-is_deeply( scalar $n1->attachments, [ $n1->attachments ], 'attachments return arrayref in scalar context' );
+is_deeply( scalar $n1->attachments, [ $n1->attachments ], 'attachments returns arrayref in scalar context' );
 isa_ok( $n1->attachments->[0], 'Net::Lighthouse::Project::Ticket::Attachment' );
 is( $n1->attachments->[0]->filename, 'first', 'attachment filename' );
 is( $n1->attachments->[1]->content_type,
@@ -126,7 +126,7 @@ my @list = $ticket->list;
 is( scalar @list, 2, 'list number' );
 is( $list[0]->number, 2, '1st ticket number' );
 is( $list[1]->number, 1, '1st ticket number' );
-is_deeply( scalar $ticket->list, \@list, 'list return array ref in scalar context' );
+is_deeply( scalar $ticket->list, \@list, 'list returns array ref in scalar context' );
 
 # test initial_state
 $Mock_response->mock(
diff --git a/t/04-ticket-version.t b/t/04-ticket-version.t
index 7765d54..50f1d1f 100644
--- a/t/04-ticket-version.t
+++ b/t/04-ticket-version.t
@@ -35,7 +35,7 @@ my $xml = do {
     <$fh>;
 };
 my $v1 = $version->load_from_xml($xml);
-is( $v1, $version, 'load return $self' );
+is( $v1, $version, 'load returns $self' );
 
 my %hash = (
     'number'            => 1,
diff --git a/t/05-ticket-attachment.t b/t/05-ticket-attachment.t
index 0bf77c9..5e7bd8a 100644
--- a/t/05-ticket-attachment.t
+++ b/t/05-ticket-attachment.t
@@ -29,7 +29,7 @@ my $xml = do {
     <$fh>;
 };
 my $v1 = $attachment->load_from_xml($xml);
-is( $v1, $attachment, 'load return $self' );
+is( $v1, $attachment, 'load returns $self' );
 my %hash = (
     'width'        => undef,
     'uploader_id'  => 67166,
diff --git a/t/06-user.t b/t/06-user.t
index 459c544..521f894 100644
--- a/t/06-user.t
+++ b/t/06-user.t
@@ -30,7 +30,7 @@ $Mock_response->mock(
 );
 
 my $sunnavy = $user->load( 67166 );
-is( $sunnavy, $user, 'load return $self' );
+is( $sunnavy, $user, 'load returns $self' );
 for ( qw/name id job website avatar_url/ ) {
 
 }
diff --git a/t/07-user-membership.t b/t/07-user-membership.t
index 348c3e8..9850185 100644
--- a/t/07-user-membership.t
+++ b/t/07-user-membership.t
@@ -21,7 +21,7 @@ my $xml = do {
     <$fh>;
 };
 my $m = $ms->load_from_xml($xml);
-is( $m, $ms, 'load return $self' );
+is( $m, $ms, 'load returns $self' );
 my %hash = (
         id => 69274,
         user_id => 67166,
diff --git a/t/08-token.t b/t/08-token.t
index 821188e..55a2d3d 100644
--- a/t/08-token.t
+++ b/t/08-token.t
@@ -35,7 +35,7 @@ $Mock_response->mock(
 
 my $m = $token->load('a'x40);
 
-is( $m, $token, 'load return $self' );
+is( $m, $token, 'load returns $self' );
 my %hash = (
     'created_at' => DateTime->new(
         year   => 2007,
diff --git a/t/09-milestone.t b/t/09-milestone.t
index f26e41e..b2c33d5 100644
--- a/t/09-milestone.t
+++ b/t/09-milestone.t
@@ -47,7 +47,7 @@ my $n1 = Net::Lighthouse::Project::Milestone->new(
     project_id => 35918,
 );
 my $load = $n1->load(1);
-is( $load, $n1, 'load return $self' );
+is( $load, $n1, 'load returns $self' );
 my %hash = (
     'account'            => 'sunnavy',
     'due_on' => DateTime->new(
@@ -103,7 +103,7 @@ $milestone = Net::Lighthouse::Project::Milestone->new(
 my @list = $milestone->list;
 is( scalar @list, 1, 'list number' );
 is( $list[0]->id, 48761, '1st milestone number' );
-is_deeply( scalar $milestone->list, \@list, 'list return array ref in scalar context' );
+is_deeply( scalar $milestone->list, \@list, 'list returns array ref in scalar context' );
 
 # test initial_state
 $Mock_response->mock(
diff --git a/t/10-changeset.t b/t/10-changeset.t
index c5ddc81..e6f37d9 100644
--- a/t/10-changeset.t
+++ b/t/10-changeset.t
@@ -42,7 +42,7 @@ my $n1 = Net::Lighthouse::Project::Changeset->new(
     project_id => 2,
 );
 my $load = $n1->load(1);
-is( $load, $n1, 'load return $self' );
+is( $load, $n1, 'load returns $self' );
 my %hash = (
                  'account' => 'sunnavy',
                  'body' => '#{unprocessed body}',
@@ -85,7 +85,7 @@ $changeset = Net::Lighthouse::Project::Changeset->new(
 my @list = $changeset->list;
 is( scalar @list, 1, 'list number' );
 is( $list[0]->revision, 983, '1st changeset number' );
-is_deeply( scalar $changeset->list, \@list, 'list return array ref in scalar context' );
+is_deeply( scalar $changeset->list, \@list, 'list returns array ref in scalar context' );
 
 # test initial_state
 $Mock_response->mock(
diff --git a/t/11-message.t b/t/11-message.t
index 1cede50..43e1176 100644
--- a/t/11-message.t
+++ b/t/11-message.t
@@ -49,7 +49,7 @@ my $m1 = Net::Lighthouse::Project::Message->new(
     project_id => 35198,
 );
 my $load = $m1->load(20298);
-is( $load, $m1, 'load return $self' );
+is( $load, $m1, 'load returns $self' );
 my %hash = (
     'permalink'         => '1st-message',
     'parent_id'         => undef,
@@ -107,7 +107,7 @@ $message = Net::Lighthouse::Project::Message->new(
 my @list = $message->list;
 is( scalar @list, 1, 'list number' );
 is( $list[0]->id, 20298, 'message id' );
-is_deeply( scalar $message->list, \@list, 'list return array ref in scalar context' );
+is_deeply( scalar $message->list, \@list, 'list returns array ref in scalar context' );
 
 # test initial_state
 $Mock_response->mock(
diff --git a/t/12-ticket-bin.t b/t/12-ticket-bin.t
index e853388..94aa11b 100644
--- a/t/12-ticket-bin.t
+++ b/t/12-ticket-bin.t
@@ -42,7 +42,7 @@ my $b1 = Net::Lighthouse::Project::TicketBin->new(
     project_id => 35918,
 );
 my $load = $b1->load(48889);
-is( $load, $b1, 'load return $self' );
+is( $load, $b1, 'load returns $self' );
 my %hash = (
     'query'         => 'state:open',
     'account'       => 'sunnavy',
@@ -83,5 +83,5 @@ $bin = Net::Lighthouse::Project::TicketBin->new(
 my @list = $bin->list;
 is( scalar @list, 3, 'list number' );
 is( $list[0]->id, 48889, '1st bin number' );
-is_deeply( scalar $bin->list, \@list, 'list return array ref in scalar context' );
+is_deeply( scalar $bin->list, \@list, 'list returns array ref in scalar context' );
 

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



More information about the Bps-public-commit mailing list