Sha256: b9431ee29c25c6be76a16b00de5fa3fdc6ab50f60c7f5881e41ffe9245f9d526
Contents?: true
Size: 551 Bytes
Versions: 5
Compression:
Stored size: 551 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe ApplicationController do it 'safely caches a page' do define_spec_public_cache_directory file_path = path_for_file_in_spec_public_cache_directory('/test.html') File.delete file_path if File.exists? file_path File.should_not be_exist(file_path) ApplicationController.perform_caching = true ApplicationController.cache_page 'test', '/test' File.should be_exist(file_path) ApplicationController.perform_caching = false File.delete(file_path) end end
Version data entries
5 entries across 5 versions & 1 rubygems