Tests fixed

This commit is contained in:
Finn 2017-08-25 15:47:54 +01:00
parent ef2e0627e1
commit 6cdc8891c3
9 changed files with 13 additions and 0 deletions

View file

@ -342,6 +342,7 @@ $testJson = {
'email' => 'org@org.com',
'postcode' => 'LA1 1AA',
'password' => 'Meh',
'sector' => 'A',
};
$t->post_ok('/api/register' => json => $testJson)
->status_is(400)
@ -360,6 +361,7 @@ $testJson = {
'password' => 'Meh',
'street_name' => 'mary lane testing....',
'town' => 'Lancaster',
'sector' => 'A',
};
$t->post_ok('/api/register' => json => $testJson)
->status_is(200)

View file

@ -55,6 +55,7 @@ $testJson = {
'password' => $passwordBilly,
'street_name' => 'Market St',
'town' => 'Lancaster',
'sector' => 'A',
};
$t->post_ok('/api/register' => json => $testJson)
->status_is(200)

View file

@ -28,6 +28,7 @@ my $org = {
town => 'Lancaster',
postcode => 'LA1 1AA',
password => 'abc123',
sector => 'A',
};
$schema->resultset('AccountToken')->create({ name => $user->{token} });

View file

@ -56,6 +56,7 @@ my $org = {
name => 'Test Org',
street_name => 'Test Street',
town => 'Lancaster',
sector => 'A',
postcode => 'LA1 1AA',
password => 'abc123',
};

View file

@ -81,6 +81,7 @@ $testJson = {
'password' => $passwordBilly,
'street_name' => 'Chocobo Farm, Eastern Continent',
'town' => 'Gaia',
'sector' => 'A',
};
$t->post_ok('/api/register' => json => $testJson)
->status_is(200)