aboutsummaryrefslogtreecommitdiffstats
path: root/spec/spec_helper.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/spec_helper.rb
parent7bcaaf2b8e3e81ff963b5cd1b1586d727e92f51e (diff)
Use PO files from `spec/fixtures/locale` rather than the application - makes it less brittle.
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r--spec/spec_helper.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb
index a98a5113d..a7f3020c1 100644
--- a/spec/spec_helper.rb
+++ b/spec/spec_helper.rb
@@ -20,6 +20,10 @@ FakeWeb.register_uri(:purge, %r|varnish.localdomain|, :body => "OK")
# Uncomment the next line to use webrat's matchers
#require 'webrat/integrations/rspec-rails'
+# Use test-specific translations
+FastGettext.add_text_domain 'app', :path => File.join(File.dirname(__FILE__), 'fixtures', 'locale'), :type => :po
+FastGettext.default_text_domain = 'app'
+
Spec::Runner.configure do |config|
# If you're not using ActiveRecord you should remove these
# lines, delete config/database.yml and disable :active_record