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

Version Path
active_model_serializers-0.10.0.rc3 test/support/serialization_testing.rb
cheap_ams-0.10.11 test/support/serialization_testing.rb
cheap_ams-0.10.10 test/support/serialization_testing.rb
cheap_ams-0.10.8 test/support/serialization_testing.rb
cheap_ams-0.10.7 test/support/serialization_testing.rb
cheap_ams-0.10.6 test/support/serialization_testing.rb