Sha256: c375d3c451ebf58676f72904eca6776a9535b612a9424ba52ea0e1e8ea15b018

Contents?: true

Size: 266 Bytes

Versions: 11

Compression:

Stored size: 266 Bytes

Contents

require 'spec_helper'
require 'gris/identity'

describe 'Gris.cache' do
  before(:each) do
    @cache = Gris.cache
  end

  it 'caches things' do
    expect(@cache.read('x')).to be_nil
    @cache.write('x', 'abc')
    expect(@cache.read('x')).to eq('abc')
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gris-0.3.8 spec/cache_spec.rb
gris-0.3.7 spec/cache_spec.rb
gris-0.3.6 spec/cache_spec.rb
gris-0.3.4 spec/cache_spec.rb
gris-0.3.3 spec/cache_spec.rb
gris-0.3.2 spec/cache_spec.rb
gris-0.3.1 spec/cache_spec.rb
gris-0.3.0 spec/cache_spec.rb
gris-0.2.4 spec/cache_spec.rb
gris-0.2.3 spec/cache_spec.rb
gris-0.2.2 spec/cache_spec.rb