File: deprecated.t

package info (click to toggle)
libgravatar-url-perl 1.07-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 156 kB
  • sloc: perl: 652; makefile: 6
file content (21 lines) | stat: -r--r--r-- 498 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/perl -w

# Test that deprecated keys warn.

use strict;
use Test::More 'no_plan';
use Test::Warn;

use Gravatar::URL;

my $id = 'a60fc0828e808b9a6a9d50f1792240c8';
my $email = 'whatever@wherever.whichever';
my $base = 'http://www.gravatar.com/avatar';

warning_is {
    is gravatar_url(
        id   => '12345',
        base => 'http://www.example.com/gravatar',
        border => "FFF"
    ), "http://www.example.com/gravatar/12345?b=FFF";
} {carped => "The border key is deprecated"};