aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/public_body_controller_spec.rb
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2012-12-09 18:35:39 +1100
committerHenare Degan <henare.degan@gmail.com>2012-12-11 11:09:35 +1100
commit0d533ce1d56e1ec1446774cc6fff52451a844f3f (patch)
treeea6b4ce7d43c5432defaa1f1d8f17e170802bd0c /spec/controllers/public_body_controller_spec.rb
parenta01611c61b27cbcbe046d2073c791a407743ace8 (diff)
Switch to new method name
Diffstat (limited to 'spec/controllers/public_body_controller_spec.rb')
-rw-r--r--spec/controllers/public_body_controller_spec.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/controllers/public_body_controller_spec.rb b/spec/controllers/public_body_controller_spec.rb
index 29ece18cb..e97db5a12 100644
--- a/spec/controllers/public_body_controller_spec.rb
+++ b/spec/controllers/public_body_controller_spec.rb
@@ -44,14 +44,14 @@ describe PublicBodyController, "when showing a body" do
end
it "should assign the body using different locale from that used for url_name" do
- PublicBody.with_locale(:es) do
+ PublicBody.with_locales(:es) do
get :show, {:url_name => "dfh", :view => 'all'}
assigns[:public_body].notes.should == "Baguette"
end
end
it "should assign the body using same locale as that used in url_name" do
- PublicBody.with_locale(:es) do
+ PublicBody.with_locales(:es) do
get :show, {:url_name => "edfh", :view => 'all'}
assigns[:public_body].notes.should == "Baguette"
end
@@ -87,7 +87,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
+ PublicBody.with_locales(:en) do
@english_only = PublicBody.new(:name => 'English only',
:short_name => 'EO',
:request_email => 'english@flourish.org',
@@ -95,7 +95,7 @@ describe PublicBodyController, "when listing bodies" do
:last_edit_comment => '')
@english_only.save
end
- PublicBody.with_locale(:es) do
+ PublicBody.with_locales(:es) do
get :list
assigns[:public_bodies].include?(@english_only).should == true
end