Sha256: 77ad733e89104420cae857cfed4c7c3ef85f2350768d4c8c26b4ad9cbe44a05b
Contents?: true
Size: 316 Bytes
Versions: 6
Compression:
Stored size: 316 Bytes
Contents
class Minitest::Test def before_setup ActionController::Base.cache_store.clear end def with_adapter(adapter) old_adapter = ActiveModel::Serializer.config.adapter ActiveModel::Serializer.config.adapter = adapter yield ensure ActiveModel::Serializer.config.adapter = old_adapter end end
Version data entries
6 entries across 6 versions & 2 rubygems