Methods
- S
- T
-
- test_last_modified_works_with_less_than_too,
- test_request_modified,
- test_request_modified_with_collection_of_records,
- test_request_modified_with_record,
- test_request_not_modified,
- test_request_not_modified_but_etag_differs,
- test_request_not_modified_but_etag_differs_with_collection_of_records,
- test_request_not_modified_but_etag_differs_with_record,
- test_request_not_modified_with_collection_of_records,
- 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_collection_of_records,
- 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 397 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 @response.body.present? assert_equal @last_modified, @response.headers['Last-Modified'] end
test_request_modified_with_collection_of_records()
Link
# File actionpack/test/controller/render_test.rb, line 454 def test_request_modified_with_collection_of_records @request.if_modified_since = 'Thu, 16 Jul 2008 00:00:00 GMT' get :conditional_hello_with_collection_of_records assert_equal 200, @response.status.to_i assert @response.body.present? assert_equal @last_modified, @response.headers['Last-Modified'] end
test_request_modified_with_record()
Link
# File actionpack/test/controller/render_test.rb, line 426 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 @response.body.present? assert_equal @last_modified, @response.headers['Last-Modified'] end
test_request_not_modified()
Link
# File actionpack/test/controller/render_test.rb, line 382 def test_request_not_modified @request.if_modified_since = @last_modified get :conditional_hello assert_equal 304, @response.status.to_i assert @response.body.blank? 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_collection_of_records()
Link
# File actionpack/test/controller/render_test.rb, line 447 def test_request_not_modified_but_etag_differs_with_collection_of_records @request.if_modified_since = @last_modified @request.if_none_match = '"234"' get :conditional_hello_with_collection_of_records assert_response :success end
test_request_not_modified_but_etag_differs_with_record()
Link
test_request_not_modified_with_collection_of_records()
Link
# File actionpack/test/controller/render_test.rb, line 439 def test_request_not_modified_with_collection_of_records @request.if_modified_since = @last_modified get :conditional_hello_with_collection_of_records assert_equal 304, @response.status.to_i assert @response.body.blank? assert_equal @last_modified, @response.headers['Last-Modified'] end
test_request_not_modified_with_record()
Link
# File actionpack/test/controller/render_test.rb, line 410 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 @response.body.blank? assert_not_nil @response.etag 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
test_responds_with_last_modified_with_collection_of_records()
Link