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:
parent
2487bfb39a
commit
08cfe34174
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue