Sha256: 99f7cfee075e2315df59b4ee4081f68969cf4db2b3df02a170181cbe874ca916
Contents?: true
Size: 686 Bytes
Versions: 41
Compression:
Stored size: 686 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}") assert_written_to_cache("views/en/taxons/#{taxon.updated_at.utc.to_i}") 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
41 entries across 41 versions & 2 rubygems