Methods
T
Instance Public methods
test_assigns_do_not_reset_template_assertion()
# File actionpack/test/dispatch/template_assertions_test.rb, line 99
def test_assigns_do_not_reset_template_assertion
  get '/assert_template/render_with_layout'
  assert_equal 'hello', assigns(:variable_for_layout)
  assert_template layout: 'layouts/standard'
end
test_cookies_do_not_reset_template_assertion()
# File actionpack/test/dispatch/template_assertions_test.rb, line 105
def test_cookies_do_not_reset_template_assertion
  get '/assert_template/render_with_layout'
  cookies
  assert_template layout: 'layouts/standard'
end
test_file_reset_between_requests()
# File actionpack/test/dispatch/template_assertions_test.rb, line 51
def test_file_reset_between_requests
  get '/assert_template/render_with_file'
  assert_template file: 'README.rdoc'

  get '/assert_template/render_nothing'
  assert_template file: nil
end
test_file_reset_between_requests_when_opening_a_session()
# File actionpack/test/dispatch/template_assertions_test.rb, line 89
def test_file_reset_between_requests_when_opening_a_session
  open_session do |session|
    session.get '/assert_template/render_with_file'
    session.assert_template file: 'README.rdoc'

    session.get '/assert_template/render_nothing'
    session.assert_template file: nil
  end
end
test_layout_reset_between_requests()
# File actionpack/test/dispatch/template_assertions_test.rb, line 43
def test_layout_reset_between_requests
  get '/assert_template/render_with_layout'
  assert_template layout: 'layouts/standard'

  get '/assert_template/render_nothing'
  assert_template layout: nil
end
test_layout_reset_between_requests_when_opening_a_session()
# File actionpack/test/dispatch/template_assertions_test.rb, line 79
def test_layout_reset_between_requests_when_opening_a_session
  open_session do |session|
    session.get '/assert_template/render_with_layout'
    session.assert_template layout: 'layouts/standard'

    session.get '/assert_template/render_nothing'
    session.assert_template layout: nil
  end
end
test_partial_reset_between_requests()
# File actionpack/test/dispatch/template_assertions_test.rb, line 35
def test_partial_reset_between_requests
  get '/assert_template/render_with_partial'
  assert_template partial: 'test/_partial'

  get '/assert_template/render_nothing'
  assert_template partial: nil
end
test_partial_reset_between_requests_when_opening_a_session()
# File actionpack/test/dispatch/template_assertions_test.rb, line 69
def test_partial_reset_between_requests_when_opening_a_session
  open_session do |session|
    session.get '/assert_template/render_with_partial'
    session.assert_template partial: 'test/_partial'

    session.get '/assert_template/render_nothing'
    session.assert_template partial: nil
  end
end
test_template_reset_between_requests()
# File actionpack/test/dispatch/template_assertions_test.rb, line 27
def test_template_reset_between_requests
  get '/assert_template/render_with_template'
  assert_template 'test/hello_world'

  get '/assert_template/render_nothing'
  assert_template nil
end
test_template_reset_between_requests_when_opening_a_session()
# File actionpack/test/dispatch/template_assertions_test.rb, line 59
def test_template_reset_between_requests_when_opening_a_session
  open_session do |session|
    session.get '/assert_template/render_with_template'
    session.assert_template 'test/hello_world'

    session.get '/assert_template/render_nothing'
    session.assert_template nil
  end
end