fix admin approve and merge tests

This commit is contained in:
Tom Bloor 2017-06-13 21:23:19 +01:00
parent 170a056f37
commit c702956777
2 changed files with 4 additions and 4 deletions

View file

@ -30,7 +30,7 @@ my $testJson = {
'email' => $emailReno, 'email' => $emailReno,
'postcode' => 'SA4 3FA', 'postcode' => 'SA4 3FA',
'password' => $passwordReno, 'password' => $passwordReno,
'age_range' => 1 year_of_birth => 2006
}; };
$t->post_ok('/api/register' => json => $testJson) $t->post_ok('/api/register' => json => $testJson)
->status_is(200)->or($dump_error) ->status_is(200)->or($dump_error)
@ -64,7 +64,7 @@ $testJson = {
'email' => $emailAdmin, 'email' => $emailAdmin,
'postcode' => 'HD5 9XU', 'postcode' => 'HD5 9XU',
'password' => $passwordAdmin, 'password' => $passwordAdmin,
'age_range' => 2 year_of_birth => 2006
}; };
$t->post_ok('/api/register' => json => $testJson) $t->post_ok('/api/register' => json => $testJson)
->status_is(200) ->status_is(200)

View file

@ -30,7 +30,7 @@ my $testJson = {
'email' => $emailReno, 'email' => $emailReno,
'postcode' => 'SA4 3FA', 'postcode' => 'SA4 3FA',
'password' => $passwordReno, 'password' => $passwordReno,
'age_range' => 1 year_of_birth => 2006
}; };
$t->post_ok('/api/register' => json => $testJson) $t->post_ok('/api/register' => json => $testJson)
->status_is(200) ->status_is(200)
@ -65,7 +65,7 @@ $testJson = {
'email' => $emailAdmin, 'email' => $emailAdmin,
'postcode' => 'HD5 9XU', 'postcode' => 'HD5 9XU',
'password' => $passwordAdmin, 'password' => $passwordAdmin,
'age_range' => 2 year_of_birth => 2006
}; };
$t->post_ok('/api/register' => json => $testJson) $t->post_ok('/api/register' => json => $testJson)
->status_is(200) ->status_is(200)