Fix lazyi18n in local dev with spring

Ensures that the base backend is already loaded because otherwise
things get sad sometimes

Change-Id: I37306327466d0bbdda8126d79fb96695a52675a3
Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/256224
Reviewed-by: Cody Cutrer <cody@instructure.com>
QA-Review: Cody Cutrer <cody@instructure.com>
Product-Review: Cody Cutrer <cody@instructure.com>
Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com>
This commit is contained in:
Jacob Burroughs 2021-01-07 11:49:11 -05:00
parent 524148d394
commit 53a2c7f414
1 changed files with 2 additions and 0 deletions

View File

@ -853,6 +853,8 @@ RSpec.configure do |config|
end
end
require 'lazy_presumptuous_i18n_backend'
class LazyPresumptuousI18nBackend
def stub(translations)
@stubs = translations.with_indifferent_access