diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-09-07 12:51:42 +0100 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-09-07 12:51:42 +0100 |
commit | c690679f5e55d908a0f91b0d9b3276ae3f748b2d (patch) | |
tree | cbe46b2e859aa6f59d39a110d997274091004a24 /spec/controllers/services_controller_spec.rb | |
parent | 67a3a43cc26f8ad7218f33a13af04c3c74347866 (diff) | |
parent | dd39dbc580b1447758a6d3b9231ce09c9b3dcdf3 (diff) |
Merge branch 'wdtk' of git.mysociety.org:/data/git/public/alaveteli into wdtk
Diffstat (limited to 'spec/controllers/services_controller_spec.rb')
-rw-r--r-- | spec/controllers/services_controller_spec.rb | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/spec/controllers/services_controller_spec.rb b/spec/controllers/services_controller_spec.rb index 2be382258..a701ae247 100644 --- a/spec/controllers/services_controller_spec.rb +++ b/spec/controllers/services_controller_spec.rb @@ -2,8 +2,15 @@ require File.expand_path(File.dirname(__FILE__) + '/../spec_helper') describe ServicesController, "when using web services" do + integrate_views - + + # store and restore the locale in the context of the test suite to isolate + # changes made in these tests + before do + @old_locale = FastGettext.locale() + end + it "should show no alaveteli message when in the deployed country" do config = MySociety::Config.load_default() config['ISO_COUNTRY_CODE'] = "DE" @@ -29,5 +36,8 @@ describe ServicesController, "when using web services" do response.body.should match(/Puede hacer solicitudes de información en España/) end + after do + FastGettext.set_locale(@old_locale) + end -end +end
\ No newline at end of file |