aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/model/user.t
diff options
context:
space:
mode:
Diffstat (limited to 't/app/model/user.t')
-rw-r--r--t/app/model/user.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/app/model/user.t b/t/app/model/user.t
index 88b29ca84..c1981c858 100644
--- a/t/app/model/user.t
+++ b/t/app/model/user.t
@@ -67,7 +67,7 @@ FixMyStreet::override_config {
};
subtest 'Check non-existent methods on user object die' => sub {
- my $c = ctx_request(POST '/auth', { username => 'test@example.com', password_sign_in => 'secret' });
+ my $c = ctx_request(POST '/auth', { username => $problem->user->email, password_sign_in => 'secret' });
throws_ok(
sub { $c->user->is_super_user },
qr/Can't locate object method 'is_super_user'/,