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