Methods
- S
- T
-
- test_last_modified_works_with_less_than_too,
- test_request_modified,
- test_request_modified_with_record,
- test_request_not_modified,
- test_request_not_modified_but_etag_differs,
- test_request_not_modified_but_etag_differs_with_record,
- test_request_not_modified_with_record,
- test_request_with_bang_gets_last_modified,
- test_request_with_bang_obeys_last_modified,
- test_responds_with_last_modified,
- test_responds_with_last_modified_with_record
Instance Public methods
setup()
Link
test_last_modified_works_with_less_than_too()
Link
test_request_modified()
Link
# File actionpack/test/controller/render_test.rb, line 1550 def test_request_modified @request.if_modified_since = 'Thu, 16 Jul 2008 00:00:00 GMT' get :conditional_hello assert_equal 200, @response.status.to_i assert_present @response.body assert_equal @last_modified, @response.headers['Last-Modified'] end
test_request_modified_with_record()
Link
# File actionpack/test/controller/render_test.rb, line 1579 def test_request_modified_with_record @request.if_modified_since = 'Thu, 16 Jul 2008 00:00:00 GMT' get :conditional_hello_with_record assert_equal 200, @response.status.to_i assert_present @response.body assert_equal @last_modified, @response.headers['Last-Modified'] end
test_request_not_modified()
Link
# File actionpack/test/controller/render_test.rb, line 1535 def test_request_not_modified @request.if_modified_since = @last_modified get :conditional_hello assert_equal 304, @response.status.to_i assert_blank @response.body assert_equal @last_modified, @response.headers['Last-Modified'] end
test_request_not_modified_but_etag_differs()
Link
test_request_not_modified_but_etag_differs_with_record()
Link
test_request_not_modified_with_record()
Link
# File actionpack/test/controller/render_test.rb, line 1564 def test_request_not_modified_with_record @request.if_modified_since = @last_modified get :conditional_hello_with_record assert_equal 304, @response.status.to_i assert_blank @response.body assert_equal @last_modified, @response.headers['Last-Modified'] end
test_request_with_bang_gets_last_modified()
Link
test_request_with_bang_obeys_last_modified()
Link
test_responds_with_last_modified()
Link