Sha256: 2c07ddfe2048c53bf486b7eafc54b67f15cc2575e3313f842317466c3812878b

Contents?: true

Size: 726 Bytes

Versions: 6

Compression:

Stored size: 726 Bytes

Contents

RSpec.configure do |config|
  config.before(:each) do
    Refinery::Pages::PageSweeper.any_instance.stub(:expire_cache!)
  end

  config.before(:each, :caching => true) do
    FileUtils.rm_rf "spec/dummy/public/refinery/cache"
    ActionController::Base.perform_caching = true
    Refinery::Pages.cache_pages_full = true
    Refinery::Pages::PageSweeper.any_instance.stub(:cache_directory).and_return(ActionController::Base.page_cache_directory)
    Refinery::Pages::PageSweeper.any_instance.unstub(:expire_cache!)
  end

  config.after(:each, :caching => true) do
    FileUtils.rm_rf "spec/dummy/public/refinery/cache"
    ActionController::Base.perform_caching = false
    Refinery::Pages.cache_pages_full = false
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
refinerycms-pages-2.1.5 spec/support/refinery/pages/caching.rb
refinerycms-pages-2.1.4 spec/support/refinery/pages/caching.rb
refinerycms-pages-2.1.3 spec/support/refinery/pages/caching.rb
refinerycms-pages-2.1.2 spec/support/refinery/pages/caching.rb
refinerycms-pages-2.1.1 spec/support/refinery/pages/caching.rb
refinerycms-pages-2.1.0 spec/support/refinery/pages/caching.rb