Sha256: 2821e6c2866f3232eaacbbb1d4b73fe29d6157d289533523c0e13cb9059e6e51

Contents?: true

Size: 376 Bytes

Versions: 10

Compression:

Stored size: 376 Bytes

Contents

# frozen_string_literal: true
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

10 entries across 10 versions & 1 rubygems

Version Path
measured-3.1.0 test/cache/null_test.rb
measured-3.0.0 test/cache/null_test.rb
measured-2.8.2 test/cache/null_test.rb
measured-2.8.1 test/cache/null_test.rb
measured-2.8.0 test/cache/null_test.rb
measured-2.7.1 test/cache/null_test.rb
measured-2.7.0 test/cache/null_test.rb
measured-2.6.0 test/cache/null_test.rb
measured-2.5.2 test/cache/null_test.rb
measured-2.5.1 test/cache/null_test.rb