From c7029567778620c9621274c996132af006eeefa2 Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Tue, 13 Jun 2017 21:23:19 +0100 Subject: [PATCH] fix admin approve and merge tests --- t/admin-approve.t | 4 ++-- t/admin-merge.t | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/t/admin-approve.t b/t/admin-approve.t index 49ceaf5..3c287ed 100644 --- a/t/admin-approve.t +++ b/t/admin-approve.t @@ -30,7 +30,7 @@ my $testJson = { 'email' => $emailReno, 'postcode' => 'SA4 3FA', 'password' => $passwordReno, - 'age_range' => 1 + year_of_birth => 2006 }; $t->post_ok('/api/register' => json => $testJson) ->status_is(200)->or($dump_error) @@ -64,7 +64,7 @@ $testJson = { 'email' => $emailAdmin, 'postcode' => 'HD5 9XU', 'password' => $passwordAdmin, - 'age_range' => 2 + year_of_birth => 2006 }; $t->post_ok('/api/register' => json => $testJson) ->status_is(200) diff --git a/t/admin-merge.t b/t/admin-merge.t index b23cfea..661f264 100644 --- a/t/admin-merge.t +++ b/t/admin-merge.t @@ -30,7 +30,7 @@ my $testJson = { 'email' => $emailReno, 'postcode' => 'SA4 3FA', 'password' => $passwordReno, - 'age_range' => 1 + year_of_birth => 2006 }; $t->post_ok('/api/register' => json => $testJson) ->status_is(200) @@ -65,7 +65,7 @@ $testJson = { 'email' => $emailAdmin, 'postcode' => 'HD5 9XU', 'password' => $passwordAdmin, - 'age_range' => 2 + year_of_birth => 2006 }; $t->post_ok('/api/register' => json => $testJson) ->status_is(200)