Sha256: e97f8b8d1b664371781e34ee74b7287f38cda102288ac89b109c04f93dbbaea9
Contents?: true
Size: 601 Bytes
Versions: 22
Compression:
Stored size: 601 Bytes
Contents
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 assert_written_to_cache("views/en/spree/taxonomies/#{taxonomy.id}") clear_cache_events end it "busts the cache when max_level_in_taxons_menu conf changes" do Spree::Config[:max_level_in_taxons_menu] = 5 visit spree.root_path assert_written_to_cache("views/en/spree/taxonomies/#{taxonomy.id}") expect(cache_writes.count).to eq(1) end end
Version data entries
22 entries across 22 versions & 1 rubygems