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

Improve description of tests.

This commit is contained in:
Guo Xiang Tan 2014-07-25 00:43:45 +08:00
parent cc10288e5f
commit e6f2d4f685

View file

@ -24,7 +24,7 @@ class AssertTemplateController < ActionController::Base
end
class AssertTemplateControllerTest < ActionDispatch::IntegrationTest
def test_assert_template_reset_between_requests
def test_template_reset_between_requests
get '/assert_template/render_with_template'
assert_template 'test/hello_world'
@ -32,7 +32,7 @@ class AssertTemplateControllerTest < ActionDispatch::IntegrationTest
assert_template nil
end
def test_assert_partial_reset_between_requests
def test_partial_reset_between_requests
get '/assert_template/render_with_partial'
assert_template partial: 'test/_partial'
@ -40,7 +40,7 @@ class AssertTemplateControllerTest < ActionDispatch::IntegrationTest
assert_template partial: nil
end
def test_assert_layout_reset_between_requests
def test_layout_reset_between_requests
get '/assert_template/render_with_layout'
assert_template layout: 'layouts/standard'
@ -48,7 +48,7 @@ class AssertTemplateControllerTest < ActionDispatch::IntegrationTest
assert_template layout: nil
end
def test_assert_file_reset_between_requests
def test_file_reset_between_requests
get '/assert_template/render_with_file'
assert_template file: 'README.rdoc'