Permalink
Browse files

fixed type...

  • Loading branch information...
1 parent 8e8fab5 commit 9f38e2292a5b4c92823cdc6ff30dd890a016ff6d @nekokak committed Jun 8, 2011
Showing with 4 additions and 4 deletions.
  1. +2 −2 lib/Jonk/Job.pm
  2. +2 −2 t/job.t
View
@@ -27,7 +27,7 @@ sub completed {
sub failed {
my ($self, $opt) = @_;
- Carp::croak 'job is already complated.' if $self->is_completed;
+ Carp::croak 'job is already completed.' if $self->is_completed;
Carp::croak 'job is already aborted.' if $self->is_aborted;
$self->{_failed} = 1;
@@ -39,7 +39,7 @@ sub failed {
sub aborted {
my $self = shift;
- Carp::croak 'job is already complated.' if $self->is_completed;
+ Carp::croak 'job is already completed.' if $self->is_completed;
Carp::croak 'job is already failed.' if $self->is_failed;
$self->{_aborted} = 1;
View
@@ -116,9 +116,9 @@ subtest 'error case' => sub {
$job->completed();
eval {$job->failed};
- like $@ , qr/job is already complated./;
+ like $@ , qr/job is already completed./;
eval {$job->aborted};
- like $@ , qr/job is already complated./;
+ like $@ , qr/job is already completed./;
}
{
my $job_id = $client->insert('MyWorker', 'arg');

0 comments on commit 9f38e22

Please sign in to comment.