Sha256: 482f5282323376c3c85d5797dbe618eee78abc1db7438b59486a3217d6e160e2

Contents?: true

Size: 495 Bytes

Versions: 14

Compression:

Stored size: 495 Bytes

Contents

# frozen_string_literal: true

require 'spec_helper'

describe 'taxons', type: :feature, caching: true do
  let!(:taxonomy) { create(:taxonomy) }
  let!(:taxon) { create(:taxon, taxonomy: taxonomy) }

  before do
    # warm up the cache
    visit spree.root_path

    clear_cache_events
  end

  it "busts the cache when max_level_in_taxons_menu conf changes" do
    stub_spree_preferences(max_level_in_taxons_menu: 5)
    visit spree.root_path
    expect(cache_writes.count).to eq(1)
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
solidus_frontend-2.10.5 spec/features/caching/taxons_spec.rb
solidus_frontend-2.10.3 spec/features/caching/taxons_spec.rb
solidus_frontend-2.10.2 spec/features/caching/taxons_spec.rb
solidus_frontend-2.9.6 spec/features/caching/taxons_spec.rb
solidus_frontend-2.10.1 spec/features/caching/taxons_spec.rb
solidus_frontend-2.9.5 spec/features/caching/taxons_spec.rb
solidus_frontend-2.10.0 spec/features/caching/taxons_spec.rb
solidus_frontend-2.9.4 spec/features/caching/taxons_spec.rb
solidus_frontend-2.9.3 spec/features/caching/taxons_spec.rb
solidus_frontend-2.9.2 spec/features/caching/taxons_spec.rb
solidus_frontend-2.10.0.beta1 spec/features/caching/taxons_spec.rb
solidus_frontend-2.9.1 spec/features/caching/taxons_spec.rb
solidus_frontend-2.9.0 spec/features/caching/taxons_spec.rb
solidus_frontend-2.9.0.rc.1 spec/features/caching/taxons_spec.rb