diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2013-01-17 05:26:54 +1100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2013-04-02 15:48:06 +0100 |
commit | 5d22285eef67627c58320f031d03d2bffd0ba55e (patch) | |
tree | 1893ffa86b52dacad9d606d0d392c78c13e69a0f /spec/controllers/public_body_controller_spec.rb | |
parent | 4dec7290c10537ebcccba491ba5dddcefd81e43a (diff) |
Set locale with I18n rather than through globalize
Conflicts:
app/controllers/general_controller.rb
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 6bcd25b62..8f5b79489 100644 --- a/spec/controllers/public_body_controller_spec.rb +++ b/spec/controllers/public_body_controller_spec.rb @@ -88,7 +88,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', @@ -96,7 +96,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 |