From 5823da8d2509239e22ee7a89da2a52f6ad1b7f0c Mon Sep 17 00:00:00 2001 From: Raphael Sofaer Date: Fri, 18 Feb 2011 11:12:20 -0500 Subject: [PATCH] Make translation failure error out, there are at least 1 uncovered translation failures (share with lightbox) --- spec/support/i18n_raise_errors.rb | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 spec/support/i18n_raise_errors.rb diff --git a/spec/support/i18n_raise_errors.rb b/spec/support/i18n_raise_errors.rb new file mode 100644 index 000000000..5a6498fbb --- /dev/null +++ b/spec/support/i18n_raise_errors.rb @@ -0,0 +1,7 @@ +module I18n + def self.just_raise_that_exception(*args) + raise args.first + end +end + +I18n.exception_handler = :just_raise_that_exception