diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-02-07 09:12:20 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2015-02-07 09:12:20 +0900 |
commit | 37b36a48b9956afebb030bdffdf42e0e20f92aff (patch) | |
tree | c8ea812fc30399bf77acec6705746c4c9e562718 /actionview/test/actionpack/controller | |
parent | 5f5f3a8216f5c8f2c484f80eec6ee69cd28d5977 (diff) | |
download | rails-37b36a48b9956afebb030bdffdf42e0e20f92aff.tar.gz rails-37b36a48b9956afebb030bdffdf42e0e20f92aff.tar.bz2 rails-37b36a48b9956afebb030bdffdf42e0e20f92aff.zip |
use kwargs instead of xhr method. refs #18771.
Diffstat (limited to 'actionview/test/actionpack/controller')
-rw-r--r-- | actionview/test/actionpack/controller/render_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/test/actionpack/controller/render_test.rb b/actionview/test/actionpack/controller/render_test.rb index 0a8842b527..fe4cf3688a 100644 --- a/actionview/test/actionpack/controller/render_test.rb +++ b/actionview/test/actionpack/controller/render_test.rb @@ -968,12 +968,12 @@ class RenderTest < ActionController::TestCase end def test_should_implicitly_render_html_template_from_xhr_request - xhr :get, :render_implicit_html_template_from_xhr_request + get :render_implicit_html_template_from_xhr_request, xhr: true assert_equal "XHR!\nHello HTML!", @response.body end def test_should_implicitly_render_js_template_without_layout - xhr :get, :render_implicit_js_template_without_layout, :format => :js + get :render_implicit_js_template_without_layout, format: :js, xhr: true assert_no_match %r{<html>}, @response.body end |