diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-01-06 06:02:04 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-01-06 06:02:04 -0500 |
commit | d06d71bb54b17d9a7e1b9d1e7084c2bc1e7a38bc (patch) | |
tree | 155621bbceb3c5b20c37c3327209bb62ba9edd82 /actionview/test | |
parent | b3bd6451b13307cfd2349b74191b10f99a607f66 (diff) | |
download | rails-d06d71bb54b17d9a7e1b9d1e7084c2bc1e7a38bc.tar.gz rails-d06d71bb54b17d9a7e1b9d1e7084c2bc1e7a38bc.tar.bz2 rails-d06d71bb54b17d9a7e1b9d1e7084c2bc1e7a38bc.zip |
Remove unneeded Deprecation silence
Diffstat (limited to 'actionview/test')
-rw-r--r-- | actionview/test/template/render_test.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/actionview/test/template/render_test.rb b/actionview/test/template/render_test.rb index e7e0b147c7..2651d6ff73 100644 --- a/actionview/test/template/render_test.rb +++ b/actionview/test/template/render_test.rb @@ -475,11 +475,9 @@ module RenderTestCases end def test_render_ignores_templates_with_malformed_template_handlers - ActiveSupport::Deprecation.silence do - %w(malformed malformed.erb malformed.html.erb malformed.en.html.erb).each do |name| - assert File.exist?(File.expand_path("#{FIXTURE_LOAD_PATH}/test/malformed/#{name}~")), "Malformed file (#{name}~) which should be ignored does not exists" - assert_raises(ActionView::MissingTemplate) { @view.render(file: "test/malformed/#{name}") } - end + %w(malformed malformed.erb malformed.html.erb malformed.en.html.erb).each do |name| + assert File.exist?(File.expand_path("#{FIXTURE_LOAD_PATH}/test/malformed/#{name}~")), "Malformed file (#{name}~) which should be ignored does not exists" + assert_raises(ActionView::MissingTemplate) { @view.render(file: "test/malformed/#{name}") } end end |