Module: RSpec::Cells::Caching::ClassMethods

Defined in:
lib/rspec/cells/caching.rb

Instance Method Summary collapse

Instance Method Details

#disable_cell_caching!Object


16
17
18
19
20
# File 'lib/rspec/cells/caching.rb', line 16

def disable_cell_caching!
  before :each do
    ActionController::Base.perform_caching = false
  end
end

#enable_cell_caching!Object


7
8
9
10
11
12
13
14
# File 'lib/rspec/cells/caching.rb', line 7

def enable_cell_caching!
  before :each do
    ActionController::Base.perform_caching = true
  end
  after :each do
    ActionController::Base.perform_caching = false
  end
end