Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

t/Plack-Request/cookie.t: add documentation to some of the trickier test... #331

Merged
merged 1 commit into from

2 participants

@avar

...s

Change the t/Plack-Request/cookie.t tests to use three-arg is() for
the undef tests and the multi-cookie test.

@avar avar t/Plack-Request/cookie.t: add documentation to some of the trickier t…
…ests

Change the t/Plack-Request/cookie.t tests to use three-arg is() for
the undef tests and the multi-cookie test.
8b6b245
@miyagawa miyagawa merged commit aae534a into plack:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 21, 2012
  1. @avar

    t/Plack-Request/cookie.t: add documentation to some of the trickier t…

    avar authored
    …ests
    
    Change the t/Plack-Request/cookie.t tests to use three-arg is() for
    the undef tests and the multi-cookie test.
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 t/Plack-Request/cookie.t
View
4 t/Plack-Request/cookie.t
@@ -8,11 +8,11 @@ use Plack::Request;
my $app = sub {
my $req = Plack::Request->new(shift);
- is $req->cookies->{undef}, undef;
+ is $req->cookies->{undef}, undef, "non-existing keys return undef";
is $req->cookies->{Foo}, 'Bar';
is $req->cookies->{Bar}, 'Baz';
is $req->cookies->{XXX}, 'Foo Bar';
- is $req->cookies->{YYY}, 0;
+ is $req->cookies->{YYY}, 0, "When we get multiple values we return the first one (which e.g. Apache does too)";
$req->new_response(200)->finalize;
};
Something went wrong with that request. Please try again.