From c4d726bacd492bd4281b9eddbdc29d3190444d3c Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Tue, 20 Jan 2015 12:51:07 +0000 Subject: Rename 'body_edit' admin endpoint to 'body'. --- t/app/controller/admin.t | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 't/app/controller/admin.t') diff --git a/t/app/controller/admin.t b/t/app/controller/admin.t index 9ff5b5c90..58d7e0e96 100644 --- a/t/app/controller/admin.t +++ b/t/app/controller/admin.t @@ -201,12 +201,12 @@ subtest 'check contact creation' => sub { note => 'test/note', non_public => 'on', } } ); - $mech->get_ok('/admin/body_edit/' . $body->id . '/test/category'); + $mech->get_ok('/admin/body/' . $body->id . '/test/category'); }; subtest 'check contact editing' => sub { - $mech->get_ok('/admin/body_edit/' . $body->id .'/test%20category'); + $mech->get_ok('/admin/body/' . $body->id .'/test%20category'); $mech->submit_form_ok( { with_fields => { email => 'test2@example.com', @@ -219,7 +219,7 @@ subtest 'check contact editing' => sub { $mech->content_contains( 'test2 note' ); $mech->content_contains( 'Private: No' ); - $mech->get_ok('/admin/body_edit/' . $body->id . '/test%20category'); + $mech->get_ok('/admin/body/' . $body->id . '/test%20category'); $mech->submit_form_ok( { with_fields => { email => 'test2@example.com', note => 'test2 note', @@ -228,12 +228,12 @@ subtest 'check contact editing' => sub { $mech->content_contains( 'Private: Yes' ); - $mech->get_ok('/admin/body_edit/' . $body->id . '/test%20category'); + $mech->get_ok('/admin/body/' . $body->id . '/test%20category'); $mech->content_contains( 'test2@example.com' ); }; subtest 'check contact updating' => sub { - $mech->get_ok('/admin/body_edit/' . $body->id . '/test%20category'); + $mech->get_ok('/admin/body/' . $body->id . '/test%20category'); $mech->content_like(qr{test2\@example.com[^<]*[^<]*No}s); $mech->get_ok('/admin/body/' . $body->id); @@ -243,7 +243,7 @@ subtest 'check contact updating' => sub { $mech->submit_form_ok({form_number => 1}); $mech->content_like(qr'test2@example.com[^<]*\s*Confirmed: Yes's); - $mech->get_ok('/admin/body_edit/' . $body->id . '/test%20category'); + $mech->get_ok('/admin/body/' . $body->id . '/test%20category'); $mech->content_like(qr{test2\@example.com[^<]*[^<]*Yes}s); }; -- cgit v1.2.3