summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-05-20 09:06:31 +0200
committerAzul <azul@leap.se>2014-05-26 12:58:31 +0200
commit02426b7f143e82447ff41a604c286b556ab8d3a5 (patch)
tree3545e661e04ce76cb2f96d8900043a45182dbd07
parent1d0d61389011a8d0d169bc139590d90a6fbbac60 (diff)
use i18n.missing_translations
This will print missing translation keys at the end of the tests
-rw-r--r--Gemfile1
-rw-r--r--Gemfile.lock3
-rw-r--r--test/test_helper.rb2
3 files changed, 6 insertions, 0 deletions
diff --git a/Gemfile b/Gemfile
index 816cc4a..ae11e0e 100644
--- a/Gemfile
+++ b/Gemfile
@@ -60,6 +60,7 @@ end
group :test, :development do
gem 'thin'
+ gem 'i18n-missing_translations'
end
group :assets do
diff --git a/Gemfile.lock b/Gemfile.lock
index 53e0d0b..2c229f9 100644
--- a/Gemfile.lock
+++ b/Gemfile.lock
@@ -122,6 +122,8 @@ GEM
hike (1.2.3)
http_accept_language (2.0.0)
i18n (0.6.9)
+ i18n-missing_translations (0.0.2)
+ i18n (~> 0.6.0)
journey (1.0.4)
jquery-rails (3.0.4)
railties (>= 3.0, < 5.0)
@@ -254,6 +256,7 @@ DEPENDENCIES
haml (~> 3.1.7)
haml-rails (~> 0.3.4)
http_accept_language
+ i18n-missing_translations
jquery-rails
json
kaminari (= 0.13.0)
diff --git a/test/test_helper.rb b/test/test_helper.rb
index d001ac7..7959ddb 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -27,4 +27,6 @@ class ActiveSupport::TestCase
File.join(Rails.root, 'test', 'files', name)
end
+ require 'i18n/missing_translations'
+ at_exit { I18n.missing_translations.dump }
end