Sha256: fb136e010e060d57ced0ebf2947f8b4986ce98b49288f08f0e9c171a5d0fee86

Contents?: true

Size: 612 Bytes

Versions: 5

Compression:

Stored size: 612 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
      self.send(macro)

      subject { 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 { subject.guard! }
        it { is_expected.not_to be_consistent }
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
infopark_component_cache-3.2.0 spec/lib/guards/never_consistent_spec.rb
infopark_component_cache-3.1.1 spec/lib/guards/never_consistent_spec.rb
infopark_component_cache-3.1.0 spec/lib/guards/never_consistent_spec.rb
infopark_component_cache-3.0.0 spec/lib/guards/never_consistent_spec.rb
infopark_component_cache-2.0.0 spec/lib/guards/never_consistent_spec.rb