aboutsummaryrefslogtreecommitdiffstats
path: root/t/app
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-03-08 14:05:01 +0000
committerMatthew Somerville <matthew@mysociety.org>2012-03-08 14:05:01 +0000
commit1a5baa677635b0fb981bd4cf83e1843f8d5ef8ab (patch)
treef86ee8c99fd6269b925640dc2bb3ebb44ee279ce /t/app
parent410d1f1edc737d1d60e83f90053fe028eff3de30 (diff)
Store full size photos that are uploaded on filesystem, put hash in database. Fixes #9, basics for #209 (needs light box adding).
Diffstat (limited to 't/app')
-rw-r--r--t/app/controller/report_import.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/app/controller/report_import.t b/t/app/controller/report_import.t
index d6bff240c..934bf0346 100644
--- a/t/app/controller/report_import.t
+++ b/t/app/controller/report_import.t
@@ -128,7 +128,7 @@ subtest "Submit a correct entry" => sub {
"check imported fields are shown";
# Check photo present, and still there after map submission (testing bug #18)
- $mech->content_contains( '<img align="right" src="/photo?id' );
+ $mech->content_contains( '<img align="right" src="/photo/' );
$mech->content_contains('latitude" value="51.50101"', 'Check latitude');
$mech->content_contains('longitude" value="-0.141587"', 'Check longitude');
$mech->submit_form_ok(
@@ -139,7 +139,7 @@ subtest "Submit a correct entry" => sub {
},
"New map location"
);
- $mech->content_contains( '<img align="right" src="/photo?id' );
+ $mech->content_contains( '<img align="right" src="/photo/' );
$mech->content_contains('latitude" value="51.50519"', 'Check latitude');
$mech->content_contains('longitude" value="-0.142608"', 'Check longitude');