aboutsummaryrefslogtreecommitdiffstats
path: root/spec/controllers/general_controller_spec.rb
diff options
context:
space:
mode:
authorSeb Bacon <seb.bacon@gmail.com>2012-06-14 13:38:34 +0100
committerSeb Bacon <seb.bacon@gmail.com>2012-06-14 13:38:34 +0100
commit118bc669365a38d60f696802e1f5d678393ed2f3 (patch)
tree9bd56f8ce6b34dbbc345c739df513edcec9a5f1a /spec/controllers/general_controller_spec.rb
parent7bcaaf2b8e3e81ff963b5cd1b1586d727e92f51e (diff)
Use PO files from `spec/fixtures/locale` rather than the application - makes it less brittle.
Diffstat (limited to 'spec/controllers/general_controller_spec.rb')
-rw-r--r--spec/controllers/general_controller_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/controllers/general_controller_spec.rb b/spec/controllers/general_controller_spec.rb
index 8a08ab7d0..19b96eb23 100644
--- a/spec/controllers/general_controller_spec.rb
+++ b/spec/controllers/general_controller_spec.rb
@@ -83,6 +83,11 @@ describe GeneralController, "when searching" do
response.should have_text(home_link_regex)
end
+ it "should use our test PO files rather than the application one" do
+ I18n.default_locale = :es
+ get :frontpage
+ response.should have_text(/XOXO/)
+ end
it "should generate URLs without a locale prepended when there's only one locale set" do
old_fgt_available_locales = FastGettext.default_available_locales
old_i18n_available_locales = I18n.available_locales