Sha256: 020bfc860239b351ffa0d056851a366e4404359dbaa736bacd8a7c15bbf6e3b2
Contents?: true
Size: 616 Bytes
Versions: 6
Compression:
Stored size: 616 Bytes
Contents
require "spec_helper" require "infopark_component_cache/guards/never_consistent" describe InfoparkComponentCache::Guards::NeverConsistent do { "cache disabled" => :disable_cache, "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.not_to be_consistent } end context "with a call to guard!" do before { guard.guard! } it { is_expected.not_to be_consistent } end end end end
Version data entries
6 entries across 6 versions & 1 rubygems