Skip to content

Commit

Permalink
properly test updating HTTP_USER_AGENT_PROGRAM
Browse files Browse the repository at this point in the history
  • Loading branch information
gugod committed Feb 5, 2017
1 parent 67dbc92 commit 34eb730
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions t/http-program-control.t
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ require 'test_helpers.pl';
use Test::More;
use Test::Exception;

for (qw(curl wget fetch)) {
$App::perlbrew::HTTP_USER_AGENT_PROGRAM = "curl";
is App::perlbrew::http_user_agent_program(), "curl";
for my $prog (qw(curl wget fetch)) {
$App::perlbrew::HTTP_USER_AGENT_PROGRAM = $prog;
is App::perlbrew::http_user_agent_program(), $prog, "UA Program can be set to: $prog";
}

$App::perlbrew::HTTP_USER_AGENT_PROGRAM = "something-that-is-not-recognized";
Expand Down

0 comments on commit 34eb730

Please sign in to comment.