From fbd5013a6fcf5ebe2928cfefe6235bfc63552736 Mon Sep 17 00:00:00 2001 From: Jag Talon Date: Mon, 18 Mar 2013 14:59:14 -0400 Subject: [PATCH] VIN plugin now links to Decode This. --- lib/DDG/Goodie/VIN.pm | 3 ++- t/VIN.t | 16 ++++++++-------- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/lib/DDG/Goodie/VIN.pm b/lib/DDG/Goodie/VIN.pm index 544c18329..01f4c4ed3 100644 --- a/lib/DDG/Goodie/VIN.pm +++ b/lib/DDG/Goodie/VIN.pm @@ -136,8 +136,9 @@ handle query_nowhitespace_nodash => sub { } } + if ($is_vin) { - return $vin_number, heading => "CarFax", html => qq(Check the automobile's VIN at CarFax.); + return $vin_number, heading => "Vehicle Identification Number", html => qq(Check the automobile's VIN at Decode This.); } return; diff --git a/t/VIN.t b/t/VIN.t index 09f8d7596..48cd27920 100644 --- a/t/VIN.t +++ b/t/VIN.t @@ -12,23 +12,23 @@ ddg_goodie_test( [qw( DDG::Goodie::VIN )], '1g8gg35m1g7123101' => test_zci( "1G8GG35M1G7123101", - heading => 'CarFax', - html => "Check the automobile's VIN at CarFax." + heading => 'Vehicle Identification Number', + html => "Check the automobile's VIN at Decode This." ), 'vin 1g8gg35m1g7123101' => test_zci( "1G8GG35M1G7123101", - heading => 'CarFax', - html => "Check the automobile's VIN at CarFax." + heading => 'Vehicle Identification Number', + html => "Check the automobile's VIN at Decode This." ), '1g8gg35m1g7123101 vehicle identification number' => test_zci( "1G8GG35M1G7123101", - heading => 'CarFax', - html => "Check the automobile's VIN at CarFax." + heading => 'Vehicle Identification Number', + html => "Check the automobile's VIN at Decode This." ), '1g8gg35m1g7123101 tracking' => test_zci( "1G8GG35M1G7123101", - heading => 'CarFax', - html => "Check the automobile's VIN at CarFax." + heading => 'Vehicle Identification Number', + html => "Check the automobile's VIN at Decode This." ), );