diff options
author | Louise Crow <louise.crow@gmail.com> | 2013-11-26 11:32:40 +0000 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-11-26 11:32:40 +0000 |
commit | 777f5e78c4ebe193efd631189bb2c09f1bac2df0 (patch) | |
tree | b34b184868a28ed10b601a658824c735bae1c9a2 /spec/spec_helper.rb | |
parent | 64618741c17760fcb59647d74d1ccaff56160b15 (diff) | |
parent | d29ab6b1ef7b005b3dbd2e0f1c295e2022794267 (diff) |
Merge branch 'feature/restore-caching' into wdtk
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 9d16f6387..d22f3c0ff 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -183,6 +183,14 @@ Spork.prefork do end end + def with_default_locale(locale) + original_default_locale = I18n.default_locale + I18n.default_locale = locale + yield + ensure + I18n.default_locale = original_default_locale + end + def load_test_categories PublicBodyCategories.add(:en, [ "Local and regional", |