aboutsummaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2013-07-24 10:39:41 +0100
committerLouise Crow <louise.crow@gmail.com>2013-07-24 10:39:41 +0100
commitd00834ef5b8e834cedf5c0ef22c19ae52c5ced0a (patch)
treec27c6683bb957286af74ff922040afa3d2945db0 /spec/spec_helper.rb
parent44f3c921e6b839224e5be1c2ea65e01a05d14202 (diff)
Move some more config into AlaveteliLocalization so that it can be called outside initialization e.g. in tests.
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index 7e3df4f39..86ca5150a 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -31,8 +31,7 @@ Spork.prefork do
Dir[Rails.root.join("spec/support/**/*.rb")].each {|f| require f}
# Use test-specific translations
- FastGettext.add_text_domain 'app', :path => File.join(File.dirname(__FILE__), 'fixtures', 'locale'), :type => :po
- FastGettext.default_text_domain = 'app'
+ AlaveteliLocalization.set_default_text_domain('app', File.join(File.dirname(__FILE__), 'fixtures', 'locale'))
RSpec.configure do |config|
# ## Mock Framework