aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-05-25 09:38:30 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-05-25 09:41:25 +0100
commit4eb8d0dfc956e286aeca4250243865895fc45460 (patch)
treed3621720dbd638369e867fbe43550f935a014136
parent61749f6f561c18b8eef9d5b5158a7a1505ba1c4a (diff)
Remove need for sv_SE in tests.
-rw-r--r--.travis.yml2
-rw-r--r--t/open311/getupdates.t6
2 files changed, 4 insertions, 4 deletions
diff --git a/.travis.yml b/.travis.yml
index 7b0ae64ab..c91d324fe 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -26,7 +26,7 @@ env:
before_install:
- sudo apt-get -qq update
- sudo apt-get install gettext
- - sudo locale-gen cy_GB.UTF-8 en_GB.UTF-8 nb_NO.UTF-8 de_CH.UTF-8 sv_SE.UTF-8
+ - sudo locale-gen cy_GB.UTF-8 en_GB.UTF-8 nb_NO.UTF-8 de_CH.UTF-8
install:
- .travis/install
before_script:
diff --git a/t/open311/getupdates.t b/t/open311/getupdates.t
index 0e31db482..a2ea70c09 100644
--- a/t/open311/getupdates.t
+++ b/t/open311/getupdates.t
@@ -222,7 +222,7 @@ my $problem3 = $problem_rs->create( {
used_map => 1,
name => '',
state => 'confirmed',
- cobrand => 'fixamingata',
+ cobrand => 'fiksgatami',
user => $user,
created => DateTime->now()->subtract( days => 1 ),
lastupdate => DateTime->now()->subtract( days => 1 ),
@@ -237,7 +237,7 @@ subtest 'test translation of auto-added comment from old-style Open311 update' =
my $o = Open311->new( jurisdiction => 'mysociety', endpoint => 'http://example.com', test_mode => 1, test_get_returns => { 'requests.xml' => $requests_xml } );
FixMyStreet::override_config {
- ALLOWED_COBRANDS => [ 'fixamingata' ],
+ ALLOWED_COBRANDS => [ 'fiksgatami' ],
}, sub {
ok $updates->update_reports( [ 638346 ], $o, $body ), 'Updated reports';
};
@@ -247,7 +247,7 @@ subtest 'test translation of auto-added comment from old-style Open311 update' =
is_deeply(\@qs, [ 'jurisdiction_id=mysociety', 'service_request_id=638346' ], 'query string matches');
is $problem3->comments->count, 1, 'added a comment';
- is $problem3->comments->first->text, "St\xe4ngd av kommunen", 'correct comment text';
+ is $problem3->comments->first->text, "(ikke rapportert til administrasjonen)", 'correct comment text';
};
END {