diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-01-17 05:26:54 +1100 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2013-01-17 05:26:54 +1100 |
commit | 5f6a7a29bc1ea3784728a9c57edfa4be73d4196f (patch) | |
tree | 5a1fffb45716a2383e589d2d55bc12fa2b0ca8d7 /spec/controllers/public_body_controller_spec.rb | |
parent | a44431056ae75f1b2d83cb27971456d307180042 (diff) |
Set locale with I18n rather than through globalize
Diffstat (limited to 'spec/controllers/public_body_controller_spec.rb')
-rw-r--r-- | spec/controllers/public_body_controller_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/controllers/public_body_controller_spec.rb b/spec/controllers/public_body_controller_spec.rb index 14d32f303..267a854cd 100644 --- a/spec/controllers/public_body_controller_spec.rb +++ b/spec/controllers/public_body_controller_spec.rb @@ -83,7 +83,7 @@ describe PublicBodyController, "when listing bodies" do end it "should list all bodies from default locale, even when there are no translations for selected locale" do - PublicBody.with_locale(:en) do + I18n.with_locale(:en) do @english_only = PublicBody.new(:name => 'English only', :short_name => 'EO', :request_email => 'english@flourish.org', @@ -91,7 +91,7 @@ describe PublicBodyController, "when listing bodies" do :last_edit_comment => '') @english_only.save end - PublicBody.with_locale(:es) do + I18n.with_locale(:es) do get :list assigns[:public_bodies].include?(@english_only).should == true end |