With the code below, the output is “Date is: ”. Why? If I start the
curl the URL, I get headers that include Last-Modified,
yet I cannot retreive them from within the integration tests. What am
I doing wrong?
require File.dirname(FILE) + ‘/…/test_helper’
class CacheTest < ActionController::IntegrationTest
date = headers[‘Last-Modified’]
puts 'Date is: ’ + date.inspect