Skip to content

Commit

Permalink
make tests less noisy
Browse files Browse the repository at this point in the history
  • Loading branch information
Arthur Axel 'fREW' Schmidt committed Mar 4, 2014
1 parent 54184e0 commit 632a8f7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion t/resultset/date-methods-1.t
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ has [map "${_}_sql_by_part", qw(pluck add)] => (
default => sub { {} },
);

sub skip_reason { 'set ' . join(q<, >, shift->env_vars) . ' to run these tests' }
has _skip_msg_once => ( is => 'rw' );
sub skip_reason {
return '(see above)' if $_[0]->_skip_msg_once;
$_[0]->_skip_msg_once(1);
'set ' . join(q<, >, shift->env_vars) . ' to run these tests'
}

sub env_vars {
my $self = shift;
Expand Down

0 comments on commit 632a8f7

Please sign in to comment.