From 5d086ab37a947bd359219ea8cf673d25c406d256 Mon Sep 17 00:00:00 2001 From: Rob Date: Thu, 9 Jun 2016 12:44:33 +0100 Subject: [PATCH] CoffeeToWaterRatio: Removing : from the default answer as it looks unsightly --- lib/DDG/Goodie/CoffeeToWaterRatio.pm | 2 +- t/CoffeeToWaterRatio.t | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/DDG/Goodie/CoffeeToWaterRatio.pm b/lib/DDG/Goodie/CoffeeToWaterRatio.pm index 440e7dea2..1cf90da37 100644 --- a/lib/DDG/Goodie/CoffeeToWaterRatio.pm +++ b/lib/DDG/Goodie/CoffeeToWaterRatio.pm @@ -62,7 +62,7 @@ handle remainder => sub { return "1 g to 16.7 ml (0.035 oz. to 0.56 fl. oz.)", structured_answer => { data => { title => '16.7 ml (0.56 fl. oz.)', - subtitle => 'Coffee to water ratio per gram (0.035 ounces):', + subtitle => 'Coffee to water ratio per gram (0.035 ounces)', }, templates => { group => 'text', diff --git a/t/CoffeeToWaterRatio.t b/t/CoffeeToWaterRatio.t index 9783d18b9..ec6ecba20 100644 --- a/t/CoffeeToWaterRatio.t +++ b/t/CoffeeToWaterRatio.t @@ -9,11 +9,12 @@ use DDG::Test::Goodie; zci answer_type => "coffee_to_water_ratio"; zci is_cached => 1; + sub build_structured_answer { my ($input, $result) = @_; my ($title, $subtitle); if ($input eq '') { - $subtitle = "Coffee to water ratio per gram (0.035 ounces):"; + $subtitle = "Coffee to water ratio per gram (0.035 ounces)"; $title = "16.7 ml (0.56 fl. oz.)"; } else { $subtitle = "Water calculation for coffee weight: $input";