Sha256: 65377887b118f7030a92a7258c591538de0fde6ac224a4e9e16a38814bf25177
Contents?: true
Size: 616 Bytes
Versions: 5
Compression:
Stored size: 616 Bytes
Contents
require 'spec_helper' require 'infopark_component_cache/guards/always_consistent' describe InfoparkComponentCache::Guards::AlwaysConsistent do {"with cache disabled" => :disable_cache, "with cache enabled" => :enable_cache}.each do |context_description, macro| context context_description do self.send(macro) subject { described_class.new(double) } context "without a call to guard!" do it { is_expected.to be_consistent } end context "with a call to guard!" do before { subject.guard! } it { is_expected.to be_consistent } end end end end
Version data entries
5 entries across 5 versions & 1 rubygems