diff options
author | Vinicius Stock <instantink+pair+vinicius@hp.com> | 2017-05-30 11:12:34 -0300 |
---|---|---|
committer | Vinicius Stock <instantink+pair+vinicius@hp.com> | 2018-04-20 11:01:05 -0300 |
commit | 297a579de4f8cb8d8144b18d85ee370558c0977c (patch) | |
tree | f2ebeb2d607805869d8e1d354a8bddfaf046ae00 /actionpack/test | |
parent | b6ee4e4b989bfc2fe50b2b830fdcb90ef9e23d9a (diff) | |
download | rails-297a579de4f8cb8d8144b18d85ee370558c0977c.tar.gz rails-297a579de4f8cb8d8144b18d85ee370558c0977c.tar.bz2 rails-297a579de4f8cb8d8144b18d85ee370558c0977c.zip |
Create MissingExactTemplate exception with separate template
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/mime/respond_to_test.rb | 4 | ||||
-rw-r--r-- | actionpack/test/controller/render_test.rb | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/actionpack/test/controller/mime/respond_to_test.rb b/actionpack/test/controller/mime/respond_to_test.rb index f9ffd5f54c..771eccb29b 100644 --- a/actionpack/test/controller/mime/respond_to_test.rb +++ b/actionpack/test/controller/mime/respond_to_test.rb @@ -658,13 +658,13 @@ class RespondToControllerTest < ActionController::TestCase end def test_variant_without_implicit_rendering_from_browser - assert_raises(ActionController::UnknownFormat) do + assert_raises(ActionController::MissingExactTemplate) do get :variant_without_implicit_template_rendering, params: { v: :does_not_matter } end end def test_variant_variant_not_set_and_without_implicit_rendering_from_browser - assert_raises(ActionController::UnknownFormat) do + assert_raises(ActionController::MissingExactTemplate) do get :variant_without_implicit_template_rendering end end diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index fc21543049..24c5761e41 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -650,7 +650,7 @@ class ImplicitRenderTest < ActionController::TestCase tests ImplicitRenderTestController def test_implicit_no_content_response_as_browser - assert_raises(ActionController::UnknownFormat) do + assert_raises(ActionController::MissingExactTemplate) do get :empty_action end end |