diff options
author | Edmund von der Burg <evdb@mysociety.org> | 2011-04-13 11:13:39 +0100 |
---|---|---|
committer | Edmund von der Burg <evdb@mysociety.org> | 2011-04-13 11:13:39 +0100 |
commit | 90c05378d5b870b94865189f7b72583ac5022c94 (patch) | |
tree | 98a2ef22f0420759bc8c58f67d732fa21a15bc14 /t/app/controller/report_import.t | |
parent | 23c8cc3c0f7f728e069429dfb3db7eaddd0bcc62 (diff) |
Moved some of the location smarts from '/report/new' to '/around'
Diffstat (limited to 't/app/controller/report_import.t')
-rw-r--r-- | t/app/controller/report_import.t | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/t/app/controller/report_import.t b/t/app/controller/report_import.t index 5c16324d3..764357b57 100644 --- a/t/app/controller/report_import.t +++ b/t/app/controller/report_import.t @@ -105,12 +105,16 @@ subtest "Submit a correct entry" => sub { is_deeply $mech->visible_form_values, { pc => '' }, "check only pc field is shown"; + is $mech->uri->path, '/around', "sent to report page"; + $mech->submit_form_ok( # { with_fields => { pc => 'SW1A 1AA' } }, "fill in postcode" ); - # check that we are not shown anything as we don't have a location yet + is $mech->uri->path, '/report/new', "sent to report page"; + + # check that fields are prefilled for us is_deeply $mech->visible_form_values, { name => 'Test User', @@ -124,7 +128,7 @@ subtest "Submit a correct entry" => sub { "check imported fields are shown"; TODO: { - local $TODO = "'/report/123' urls not srved by catalyst yet"; + local $TODO = "'/report/123' urls not served by catalyst yet"; # change the details $mech->submit_form_ok( # |