Skip to content
This repository has been archived by the owner on Oct 15, 2022. It is now read-only.

Commit

Permalink
VIN plugin now links to Decode This.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jag Talon committed Mar 18, 2013
1 parent c9b1b36 commit fbd5013
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion lib/DDG/Goodie/VIN.pm
Expand Up @@ -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 <a href='http://www.carfax.com/cfm/check_order.cfm?VIN=$vin_number&PopUpStatus=0'>CarFax</a>.);
return $vin_number, heading => "Vehicle Identification Number", html => qq(Check the automobile's VIN at <a href='http://www.decodethis.com/VIN-Decoded/vin/$vin_number'>Decode This</a>.);
}

return;
Expand Down
16 changes: 8 additions & 8 deletions t/VIN.t
Expand Up @@ -12,23 +12,23 @@ ddg_goodie_test(
[qw( DDG::Goodie::VIN )],
'1g8gg35m1g7123101' => test_zci(
"1G8GG35M1G7123101",
heading => 'CarFax',
html => "Check the automobile's VIN at <a href='http://www.carfax.com/cfm/check_order.cfm?VIN=1G8GG35M1G7123101&PopUpStatus=0'>CarFax</a>."
heading => 'Vehicle Identification Number',
html => "Check the automobile's VIN at <a href='http://www.decodethis.com/VIN-Decoded/vin/1G8GG35M1G7123101'>Decode This</a>."
),
'vin 1g8gg35m1g7123101' => test_zci(
"1G8GG35M1G7123101",
heading => 'CarFax',
html => "Check the automobile's VIN at <a href='http://www.carfax.com/cfm/check_order.cfm?VIN=1G8GG35M1G7123101&PopUpStatus=0'>CarFax</a>."
heading => 'Vehicle Identification Number',
html => "Check the automobile's VIN at <a href='http://www.decodethis.com/VIN-Decoded/vin/1G8GG35M1G7123101'>Decode This</a>."
),
'1g8gg35m1g7123101 vehicle identification number' => test_zci(
"1G8GG35M1G7123101",
heading => 'CarFax',
html => "Check the automobile's VIN at <a href='http://www.carfax.com/cfm/check_order.cfm?VIN=1G8GG35M1G7123101&PopUpStatus=0'>CarFax</a>."
heading => 'Vehicle Identification Number',
html => "Check the automobile's VIN at <a href='http://www.decodethis.com/VIN-Decoded/vin/1G8GG35M1G7123101'>Decode This</a>."
),
'1g8gg35m1g7123101 tracking' => test_zci(
"1G8GG35M1G7123101",
heading => 'CarFax',
html => "Check the automobile's VIN at <a href='http://www.carfax.com/cfm/check_order.cfm?VIN=1G8GG35M1G7123101&PopUpStatus=0'>CarFax</a>."
heading => 'Vehicle Identification Number',
html => "Check the automobile's VIN at <a href='http://www.decodethis.com/VIN-Decoded/vin/1G8GG35M1G7123101'>Decode This</a>."
),
);

Expand Down

0 comments on commit fbd5013

Please sign in to comment.