You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
require'spec_helper'describe"MissingTranslationData"doit"should raise an error for missing translation"doexpect{I18n.t('totally.bogus.translation.key')}.toraise_exception(I18n::MissingTranslationData)endend
Given this (a more specific version of the suggestion from rails guides http://guides.rubyonrails.org/i18n.html#using-different-exception-handlers ):
and this test:
You get the following failure:
Because
exception
isI18n::MissingTranslation
notI18n::MissingTranslationData
andI18n::MissingTranslation
does not inherit from an Exception class.The text was updated successfully, but these errors were encountered: