require File.expand_path("../test_helper", __FILE__) class IntegrationTest < ActionDispatch::IntegrationTest def setup Rails.cache.clear Timecop.freeze("2012-10-10") end test "Normal mode" do get "/" assert_response 200 assert response.body.include?('2012-10-10') Timecop.freeze("2012-10-11") get "/" assert_response 200 assert response.body.include?('2012-10-10') end test "SSI mode" do get "/", {}, {"QOR_CACHE_SSI_ENABLED" => 1} assert_response 200 assert response.body.include?(%Q[