diff --git a/spec/components/js_locale_helper_spec.rb b/spec/components/js_locale_helper_spec.rb index e1c9cb40bba..6bce0bd7973 100644 --- a/spec/components/js_locale_helper_spec.rb +++ b/spec/components/js_locale_helper_spec.rb @@ -19,9 +19,8 @@ describe JsLocaleHelper do JsLocaleHelper.extend StubLoadTranslations - after do - JsLocaleHelper.clear_cache! - end + before { JsLocaleHelper.clear_cache! } + after { JsLocaleHelper.clear_cache! } describe "#output_locale" do