aboutsummaryrefslogtreecommitdiffstats
path: root/t/open311.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2013-05-07 18:03:28 +0100
committerMatthew Somerville <matthew@mysociety.org>2013-05-07 18:03:28 +0100
commit952e759f17d2920cca8620fb987947415bdb5898 (patch)
tree454bb0bc01e65ab205056f2e8d895b4e227c8b09 /t/open311.t
parent408d9c08e172c0a6023a15f786c534839a2c56c9 (diff)
Update some tests to work around small changes in some underlying modules.
Diffstat (limited to 't/open311.t')
-rw-r--r--t/open311.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/open311.t b/t/open311.t
index 71a87325c..6795b929c 100644
--- a/t/open311.t
+++ b/t/open311.t
@@ -86,13 +86,14 @@ EOT
;
my $c = CGI::Simple->new( $results->{ req }->content );
+ (my $c_description = $c->param('description')) =~ s/\r\n/\n/g;
is $c->param('email'), $user->email, 'correct email';
is $c->param('first_name'), 'Test', 'correct first name';
is $c->param('last_name'), 'User', 'correct last name';
is $c->param('lat'), 1, 'latitide correct';
is $c->param('long'), 2, 'longitude correct';
- is $c->param('description'), $description, 'description correct';
+ is $c_description, $description, 'description correct';
is $c->param('service_code'), 'pothole', 'service code correct';
};