Skip to content

Commit

Permalink
fix ENV checking
Browse files Browse the repository at this point in the history
  • Loading branch information
clsung committed May 27, 2011
1 parent 7d66d08 commit 1de8c89
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion t/02-userpage.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

use Env qw(CONSUMER_KEY CONSUMER_SECRET ACCESS_TOKEN ACCESS_TOKEN_SECRET);
use Test::More;
if ($CONSUMER_KEY and $CONSUMER_SECRET) {
if ($CONSUMER_KEY and $CONSUMER_SECRET
and $ACCESS_TOKEN and $ACCESS_TOKEN_SECRET) {
plan tests => 3;
} else {
plan skip_all =>
Expand Down
3 changes: 2 additions & 1 deletion t/05-api_unreadcounts.t
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@

use Env qw(CONSUMER_KEY CONSUMER_SECRET ACCESS_TOKEN ACCESS_TOKEN_SECRET);
use Test::More;
if ($CONSUMER_KEY and $CONSUMER_SECRET) {
if ($CONSUMER_KEY and $CONSUMER_SECRET
and $ACCESS_TOKEN and $ACCESS_TOKEN_SECRET) {
plan tests => 5;
} else {
plan skip_all =>
Expand Down

0 comments on commit 1de8c89

Please sign in to comment.