aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/auth_social.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2016-04-20 15:32:00 +0100
committerMatthew Somerville <matthew@mysociety.org>2016-04-20 15:32:00 +0100
commit193697bde57ef2cfd0a46bb5a85fa98727378297 (patch)
treee8dd78b7202b78e3483ac65924e054a23127a594 /t/app/controller/auth_social.t
parentf35b7eba0db02d16fa0aad5a78ee479165217e20 (diff)
parentb7099e8e513fe64ec183b1403515f46a7cc25f19 (diff)
Merge remote-tracking branch 'origin/1302-support-pngs'
Diffstat (limited to 't/app/controller/auth_social.t')
-rw-r--r--t/app/controller/auth_social.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/app/controller/auth_social.t b/t/app/controller/auth_social.t
index 84fdd4dfe..b8675a8fd 100644
--- a/t/app/controller/auth_social.t
+++ b/t/app/controller/auth_social.t
@@ -31,7 +31,10 @@ my $fb_uid = 123456789;
for my $fb_state ( 'refused', 'no email', 'existing UID', 'okay' ) {
for my $page ( 'my', 'report', 'update' ) {
subtest "test FB '$fb_state' login for page '$page'" => sub {
+ # Lots of user changes happening here, make sure we don't confuse
+ # Catalyst with a cookie session user that no longer exists
$mech->log_out_ok;
+ $mech->cookie_jar({});
if ($fb_state eq 'existing UID') {
my $user = $mech->create_user_ok($fb_email);
$user->update({ facebook_id => $fb_uid });