Commit Graph

9 Commits (4d62fd1731d57b7223bdd107998f96256eb5e71f)

Author SHA1 Message Date
Jag Talon 7be1572e8a HelpLine: Update tests. 2014-01-29 15:27:28 -05:00
Jag Talon a1276aab68 Helpline: Remove Canada from the tests. 2014-01-24 00:40:17 -05:00
Jag Talon 545e2c44c0 Helpline: Fix tests. 2014-01-24 00:21:43 -05:00
Dylan Lloyd 48297fc42e added international help lines & updated tests
for country in `perl ../zeroclickinfo-spice/lib/DDG/Spice/Zipcode.pm`;
    do curl "http://www.befrienders.org/directory?country=$country" 2>/dev/null
        | tee tmp
        | egrep 'There are <strong>[1-9]\d* helplines' >/dev/null
            || continue;
        foo="`
            sed -nr 's/.*Helpline 1:<\/strong>\s+([-()0-9 ]+[0-9]).*/\1/p' tmp
                | head -n1`";
        [[ ! -z "$foo" ]]
            && perl -e "print uc \"$country\", ' => \'', \"$foo',\n\"";
done;
2013-06-26 16:05:18 -04:00
Dylan Lloyd a2d2cd6c63 more comprehensive testing for HelpLine 2013-06-24 14:33:56 -04:00
Dylan Lloyd 76dfbebe23 quote test locations "just in case" 2013-06-21 17:20:03 -04:00
Dylan Lloyd 09719f5d77 test all query/location permutations and declare expected tests 2013-06-21 17:19:06 -04:00
Dylan Lloyd ae66d35d8c abstract helpline tests for geoip location based testing 2013-06-21 17:04:04 -04:00
Dylan Lloyd 8fda7647e3 wrote HelpLine test file 2013-06-21 16:35:10 -04:00