diff options
author | Edmund von der Burg <evdb@mysociety.org> | 2011-04-14 13:05:38 +0100 |
---|---|---|
committer | Edmund von der Burg <evdb@mysociety.org> | 2011-04-14 13:05:38 +0100 |
commit | db605d2095fc8ada23447e93c168f375d6f44738 (patch) | |
tree | f673e0a98714787e96e57b2eccb7306ce790508c /t/app/controller/report_import.t | |
parent | 0cc37c30af2ab2826b376cc1406f6a79dd0f46fd (diff) |
fixes to import
Diffstat (limited to 't/app/controller/report_import.t')
-rw-r--r-- | t/app/controller/report_import.t | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/t/app/controller/report_import.t b/t/app/controller/report_import.t index 25f5dddf9..5bd0b21b8 100644 --- a/t/app/controller/report_import.t +++ b/t/app/controller/report_import.t @@ -168,16 +168,14 @@ subtest "Submit a correct entry (with location)" => sub { $mech->submit_form_ok( # { with_fields => { - service => 'test-script', - latitude => '51.5010096115539', # SW1A 1AA - longitude => '-0.141587067110009', - latitude => '', - longitude => '', - name => 'Test User ll', - email => 'test-ll@example.com', - subject => 'Test report ll', - detail => 'This is a test report ll', - photo => $sample_file, + service => 'test-script', + lat => '51.5010096115539', # SW1A 1AA + lon => '-0.141587067110009', + name => 'Test User ll', + email => 'test-ll@example.com', + subject => 'Test report ll', + detail => 'This is a test report ll', + photo => $sample_file, } }, "fill in form" @@ -220,10 +218,10 @@ subtest "Submit a correct entry (with location)" => sub { $mech->submit_form_ok( # { with_fields => { - name => 'New Test User', - email => 'test@example.com', - title => 'New Test report', - detail => 'This is a test report', + 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', } |