Test renamed and add organisation rest added

This commit is contained in:
Finn 2017-08-21 15:18:34 +01:00
parent a1b6dd8d2a
commit 573c1ad50a

View file

@ -78,4 +78,19 @@ $t->post_ok('/admin/organisations/pending/2/edit', form => {
postcode => 'WC1E 6AD',
})->content_like(qr/The validation has failed/);
#Valid adding organisation
$t->post_ok('/admin/organisations/add/submit', form => {
name => 'Wall Market',
street_name => 'Slums, Sector 6',
town => 'Midgar',
postcode => 'TN35 5AQ',
})->status_is(200)->content_like(qr/Added Organisation/);
#Failed validation on adding organisation
$t->post_ok('/admin/organisations/add/submit', form => {
name => 'Wall Market',
street_name => 'Slums, Sector 6',
postcode => 'TN35 5AQ',
})->content_like(qr/The validation has failed/);
done_testing();