Created
September 29, 2012 17:55
-
-
Save dabit/3804717 to your computer and use it in GitHub Desktop.
Spec for the spree issue
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'spec_helper' | |
describe Spree::Config do | |
before do | |
ActionController::Base.perform_caching = true | |
# config.cache_store = :dalli_store, { expires_in: 5.seconds } | |
end | |
it "Should fallback to database if cache keys expire" do | |
Spree::Config.featured_sale_id = 10 | |
Rails.cache.clear | |
sleep 30 | |
Spree::Config.featured_sale_id.should eq 10 | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment