Sha256: 9546d6454458437ceb14bdeca942e3e2989c63d262d126795b6fbe1b2d9b7c98
Contents?: true
Size: 671 Bytes
Versions: 3
Compression:
Stored size: 671 Bytes
Contents
require 'spec_helper' describe I18n::HumanizeMissingTranslations do describe '.call' do context 'when exception is I18n::MissingTranslation' do it 'humanizes missing translations' do expect(I18n.t('some.missing translation')).to eq('Missing translation') end end # TODO: does this test what it suppost to test? # # context 'when exception is not I18n::MissingTranslation' do # it 'does not intercept it' do # allow(I18n::Backend::Transliterator).to receive(:get).and_raise(I18n::ArgumentError) # expect { I18n.transliterate('error?') }.to raise_error(I18n::ArgumentError) # end # end end end
Version data entries
3 entries across 3 versions & 1 rubygems