Sha256: 293546c82734d2a57a5d42ca81e858a0287b226a981cc3ccb5cd1780ce52a6ad

Contents?: true

Size: 412 Bytes

Versions: 12

Compression:

Stored size: 412 Bytes

Contents

class ActionController::IntegrationTest
  def assert_cache_key(key, clear = true)
    assert_equal key, Rails.cache.instance_variable_get(:@data).to_a.try(:first).try(:first)
    Rails.cache.clear if clear == true
  end

  def assert_cache_present
    assert Rails.cache.instance_variable_get(:@data).present?
  end

  def assert_cache_empty
    assert Rails.cache.instance_variable_get(:@data).blank?
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
liquid_cms-0.3.2.0 test/test_helpers/cache_helper.rb
liquid_cms-0.2.2.0 test/test_helpers/cache_helper.rb
liquid_cms-0.2.1.1 test/test_helpers/cache_helper.rb
liquid_cms-0.3.1.0 test/test_helpers/cache_helper.rb
liquid_cms-0.2.1.0 test/test_helpers/cache_helper.rb
liquid_cms-0.2.0.13 test/test_helpers/cache_helper.rb
liquid_cms-0.3.0.10 test/test_helpers/cache_helper.rb
liquid_cms-0.3.0.9 test/test_helpers/cache_helper.rb
liquid_cms-0.2.0.12 test/test_helpers/cache_helper.rb
liquid_cms-0.2.0.11 test/test_helpers/cache_helper.rb
liquid_cms-0.2.0.10 test/test_helpers/cache_helper.rb
liquid_cms-0.3.0.8 test/test_helpers/cache_helper.rb