From 973cffee26bfa28b243db0b7502d68826b12f8e2 Mon Sep 17 00:00:00 2001 From: Faizaan Gagan Date: Thu, 12 Aug 2021 19:56:17 +0530 Subject: [PATCH] FIX: disable string caching in `Oj` gem while running specs (#139) --- spec/plugin_helper.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/spec/plugin_helper.rb b/spec/plugin_helper.rb index 93f33a81..9e4bbbbe 100644 --- a/spec/plugin_helper.rb +++ b/spec/plugin_helper.rb @@ -11,4 +11,7 @@ if ENV['SIMPLECOV'] end end +require 'oj' +Oj.default_options = Oj.default_options.merge(cache_str: -1) + require 'rails_helper'