aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-06-10 12:16:03 +0100
committerStruan Donald <struan@exo.org.uk>2011-06-10 12:16:03 +0100
commit01bb031474e30ea7514fdf0a76f804a2fa18b7aa (patch)
tree0f2018ff828a3490731ad197017bf2f1abf5ab6e /t/app/controller
parent5e15e7a7e06117e2c4c3b8edf10c866af71bc5aa (diff)
parent3a81cb62a106adf77d226f3ab9a6c8d4381cb39c (diff)
Merge branch 'migrate_to_catalyst' of ssh://git.mysociety.org/data/git/public/fixmystreet into migrate_to_catalyst
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/report_import.t68
1 files changed, 30 insertions, 38 deletions
diff --git a/t/app/controller/report_import.t b/t/app/controller/report_import.t
index 4f225fc5a..154de13d8 100644
--- a/t/app/controller/report_import.t
+++ b/t/app/controller/report_import.t
@@ -129,25 +129,21 @@ subtest "Submit a correct entry" => sub {
},
"check imported fields are shown";
- TODO: {
- local $TODO = "'/report/123' urls not served by catalyst yet";
-
- # change the details
- $mech->submit_form_ok( #
- {
- with_fields => {
- name => 'New Test User',
- email => 'test@example.com',
- title => 'New Test report',
- detail => 'This is a test report',
- phone => '01234 567 890',
- may_show_name => '1',
- category => 'Street lighting',
- }
- },
- "Update details and save"
- );
- }
+ # change the details
+ $mech->submit_form_ok( #
+ {
+ with_fields => {
+ name => 'New Test User',
+ email => 'test@example.com',
+ title => 'New Test report',
+ detail => 'This is a test report',
+ phone => '01234 567 890',
+ may_show_name => '1',
+ category => 'Street lighting',
+ }
+ },
+ "Update details and save"
+ );
# check that report has been created
my $user =
@@ -214,25 +210,21 @@ subtest "Submit a correct entry (with location)" => sub {
},
"check imported fields are shown";
- TODO: {
- local $TODO = "'/report/123' urls not served by catalyst yet";
-
- # change the details
- $mech->submit_form_ok( #
- {
- with_fields => {
- name => 'New Test User ll',
- email => 'test-ll@example.com',
- title => 'New Test report ll',
- detail => 'This is a test report ll',
- phone => '01234 567 890',
- may_show_name => '1',
- category => 'Street lighting',
- }
- },
- "Update details and save"
- );
- }
+ # change the details
+ $mech->submit_form_ok( #
+ {
+ with_fields => {
+ name => 'New Test User ll',
+ email => 'test-ll@example.com',
+ title => 'New Test report ll',
+ detail => 'This is a test report ll',
+ phone => '01234 567 890',
+ may_show_name => '1',
+ category => 'Street lighting',
+ }
+ },
+ "Update details and save"
+ );
# check that report has been created
my $user =