1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Rename test methods in api conditional get controller tests

This commit is contained in:
Jorge Bejar 2015-05-05 15:15:15 -03:00 committed by Santiago Pastorino
parent 2487bfb39a
commit 08cfe34174

View file

@ -29,13 +29,13 @@ class ConditionalGetApiTest < ActionController::TestCase
@last_modified = Time.now.utc.beginning_of_day.httpdate
end
def test_request_with_bang_gets_last_modified
def test_request_gets_last_modified
get :two
assert_equal @last_modified, @response.headers['Last-Modified']
assert_response :success
end
def test_request_with_bang_obeys_last_modified
def test_request_obeys_last_modified
@request.if_modified_since = @last_modified
get :two
assert_response :not_modified