Remove unneeded Deprecation silence
This commit is contained in:
parent
b3bd6451b1
commit
d06d71bb54
@ -475,11 +475,9 @@ def test_render_does_not_use_unregistered_extension_and_template_handler
|
|||||||
end
|
end
|
||||||
|
|
||||||
def test_render_ignores_templates_with_malformed_template_handlers
|
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|
|
||||||
%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 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}") }
|
||||||
assert_raises(ActionView::MissingTemplate) { @view.render(file: "test/malformed/#{name}") }
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user