From b274ff293d507b6d290c68ecd85ea28bd63fc09b Mon Sep 17 00:00:00 2001 From: Zaahir Moolla Date: Thu, 23 Mar 2017 15:12:32 -0400 Subject: [PATCH] Add goodieVersion to test (#4032) --- t/Timer.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/Timer.t b/t/Timer.t index db053c39ba1..146399c41cf 100644 --- a/t/Timer.t +++ b/t/Timer.t @@ -9,6 +9,9 @@ use DDG::Test::Goodie; zci answer_type => 'timer'; zci is_cached => 1; +# Get Goodie version for use with image paths +my $goodieVersion = $DDG::GoodieBundle::OpenSourceDuckDuckGo::VERSION // 999; + sub build_structured_answer { my $time = shift; $time = $time || 0; @@ -23,6 +26,7 @@ sub build_structured_answer { }, data => { time => "$time", + goodie_version => $goodieVersion }, templates => { group => 'base',