Sha256: f55a63d16010c038cb2bafe8ddef55d79a17157f58c0333720bcf0d9429d083a

Contents?: true

Size: 346 Bytes

Versions: 1

Compression:

Stored size: 346 Bytes

Contents

require "test_helper"

class Measured::Cache::NullTest < ActiveSupport::TestCase
  setup do
    @cache = Measured::Cache::Null.new
  end

  test "#exist? false" do
    assert_equal false, @cache.exist?
  end

  test "#read returns nil" do
    assert_nil @cache.read
  end

  test "#write returns nil" do
    assert_nil @cache.write({})
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
measured-2.5.0 test/cache/null_test.rb