Skip to content

Instantly share code, notes, and snippets.

@lmars
Created January 14, 2013 10:52
Show Gist options
  • Save lmars/4529258 to your computer and use it in GitHub Desktop.
Save lmars/4529258 to your computer and use it in GitHub Desktop.
Capybara feature caching
before(:each, :capybara_feature => true)
@cache_store = ActionController::Base.cache_store
ActionController::Base.perform_caching = true
ActionController::Base.cache_store = :memory_store
end
after(:each, :capybara_feature => true)
ActionController::Base.perform_caching = false
ActionController::Base.cache_store = @cache_store
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment