Sha256: 8acc4882c4e53a3e5fdc4f2a006e5ac24afc2ffb3e9c36f4a1a81e11117fb228

Contents?: true

Size: 574 Bytes

Versions: 53

Compression:

Stored size: 574 Bytes

Contents

require 'spec_helper'

require_relative '../../../../lib/locomotive/steam/adapters/filesystem/simple_cache_store.rb'

describe Locomotive::Steam::Adapters::Filesystem::SimpleCacheStore do

  let(:store) { described_class.new }

  describe '#fetch' do

    subject { store.read(:title) }
    before { store.fetch(:title) { 'Hello world' } }

    it { is_expected.to eq 'Hello world' }

  end

  describe '#delete' do

    subject { store.fetch(:title) }
    before { store.fetch(:title) { 'Hello world' }; store.delete(:title) }

    it { is_expected.to eq nil }

  end

end

Version data entries

53 entries across 53 versions & 1 rubygems

Version Path
locomotivecms_steam-1.8.0.alpha2 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.8.0.alpha1 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.7.1 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.7.0 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.6.1 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.6.0 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.6.0.rc1 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.6.0.beta1 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.5.3 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.5.2 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.5.1 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.5.0 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.5.0.rc1 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.5.0.rc0 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.5.0.beta3 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.5.0.beta2 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.5.0.beta1 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.4.1 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.4.0 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.4.0.rc2 spec/unit/adapters/filesystem/simple_cache_store_spec.rb