diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-06-22 18:18:38 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2016-06-22 18:20:35 +0100 |
commit | 19241c52172aec0c797a00b35a090e28f7858e1d (patch) | |
tree | 21a81d44f5c10ce8ffbbc862b113280ccaef3a5b /t/app/model/problem.t | |
parent | 368d980d25c00248f46b7e8ca8fec287e5dff58d (diff) |
Tidy up some UK specific easting/northing handling
Diffstat (limited to 't/app/model/problem.t')
-rw-r--r-- | t/app/model/problem.t | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/t/app/model/problem.t b/t/app/model/problem.t index 4e4a098d7..ea45f7356 100644 --- a/t/app/model/problem.t +++ b/t/app/model/problem.t @@ -16,8 +16,8 @@ my $problem_rs = FixMyStreet::DB->resultset('Problem'); my $problem = $problem_rs->new( { postcode => 'EH99 1SP', - latitude => '51.5', - longitude => '-0.1', + latitude => '54.5', + longitude => '-1.5', areas => 1, title => '', detail => '', @@ -487,7 +487,7 @@ foreach my $test ( { to => qr'Ballymoney Borough Council', body => $body_ids{14279}[0], category => 'Graffiti', - longitude => -9.5, + longitude => -6.5, }, { %common, desc => 'directs NI correctly, 2', @@ -497,7 +497,7 @@ foreach my $test ( { to => qr'TransportNI \(Western\)" <roads', body => $body_ids{14279}[1], category => 'Street lighting', - longitude => -9.5, + longitude => -6.5, }, { %common, desc => 'does not send to unconfirmed contact', @@ -535,7 +535,7 @@ foreach my $test ( { category => $test->{ category } || 'potholes', name => $test->{ name }, cobrand => $test->{ cobrand } || 'fixmystreet', - longitude => $test->{longitude} || '-0.1', + longitude => $test->{longitude} || '-1.5', } ); FixMyStreet::override_config $override, sub { @@ -552,7 +552,7 @@ foreach my $test ( { like $email->body, qr/Subject: A Title/, 'more email body checking'; like $email->body, $test->{ dear }, 'Salutation looks correct'; if ($test->{longitude}) { - like $email->body, qr{Easting/Northing \(IE\): 95938/28531}; + like $email->body, qr{Easting/Northing \(IE\): 297279/362371}; } else { like $email->body, qr{Easting/Northing: }; } |