From 009b56c90afbcbc904fe7d0254ee7f3ff8a7a35d Mon Sep 17 00:00:00 2001 From: Maurice Aubrey Date: Sun, 24 Apr 2022 12:34:44 -0700 Subject: [PATCH] fix tests; add confiure_requires for Module::Install dependencies --- Makefile.PL | 4 ++++ t/04_auth/04_oauth2.t | 3 +++ 2 files changed, 7 insertions(+) diff --git a/Makefile.PL b/Makefile.PL index f8a54a5..d6c216f 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -2,6 +2,10 @@ use inc::Module::Install; name 'Net-Google-DataAPI'; all_from 'lib/Net/Google/DataAPI.pm'; +configure_requires 'Module::Install::AuthorTests'; +configure_requires 'Module::Install::Repository'; +configure_requires 'Module::Install::Any::Moose'; + requires 'Carp'; requires 'XML::LibXML'; requires 'XML::Atom'; diff --git a/t/04_auth/04_oauth2.t b/t/04_auth/04_oauth2.t index e3329c7..b91eacf 100644 --- a/t/04_auth/04_oauth2.t +++ b/t/04_auth/04_oauth2.t @@ -75,6 +75,7 @@ BEGIN { response_type => 'code', scope => 'https://www.googleapis.com/auth/userinfo.profile https://www.googleapis.com/auth/userinfo.email', state => '', + hd => '', } or note explain {$url->query_form}; ok my $access_token = $oauth2->get_access_token('mycode'); @@ -104,6 +105,7 @@ BEGIN { response_type => 'code', scope => 'http://spreadsheets.google.com/feeds/', state => 'hogehoge', + hd => '', } or note explain {$url->query_form}; # ok $oauth2->get_access_token('mycode'); @@ -129,6 +131,7 @@ BEGIN { access_type => 'offline', approval_prompt => 'force', state => 'foobar', + hd => '', } or note explain {$url->query_form}; # ok $oauth2->get_access_token('mycode');