Sha256: abc4e0ed4c4581aa6eeab12ee66c019aee6a87b2b85859f0d0703e3882410b21
Contents?: true
Size: 620 Bytes
Versions: 6
Compression:
Stored size: 620 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 send(macro) subject(:guard) { 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 { guard.guard! } it { is_expected.to be_consistent } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems