cleanup
[gitmo/Moose.git] / t / 002_basic.t
index 73a6756..5f81bfb 100644 (file)
@@ -43,7 +43,7 @@ BEGIN {
        before 'withdraw' => sub {
                my ($self, $amount) = @_;
                my $overdraft_amount = $amount - $self->balance();
-               if (self->overdraft_account && $overdraft_amount > 0) {
+               if ($self->overdraft_account && $overdraft_amount > 0) {
                        $self->overdraft_account->withdraw($overdraft_amount);
                        $self->deposit($overdraft_amount);
                }