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.0.0.rc9 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.0.0.rc8 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.0.0.rc6 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.0.0.rc4 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.0.0.rc3 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.0.0.rc2 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.0.0.rc1 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.0.0.pre.beta.3 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.0.0.pre.beta.2 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.0.0.pre.beta.1 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.0.0.pre.alpha.3 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.0.0.pre.alpha.2 spec/unit/adapters/filesystem/simple_cache_store_spec.rb
locomotivecms_steam-1.0.0.pre.alpha.1 spec/unit/adapters/filesystem/simple_cache_store_spec.rb