提交 78827223 编写于 作者: Y yuuji.yaginuma

Fix "DEPRECATION WARNING: ActionView::Template#initialize requires a locals parameter"

Ref: #35411
上级 cd89082f
......@@ -18,7 +18,7 @@ def setup
end
test "should omit ActionView template methods names" do
method_name = ActionView::Template.new(nil, "app/views/application/index.html.erb", nil, {}).send :method_name
method_name = ActionView::Template.new(nil, "app/views/application/index.html.erb", nil, locals: []).send :method_name
backtrace = [ "app/views/application/index.html.erb:4:in `block in #{method_name}'"]
result = @cleaner.clean(backtrace, :all)
assert_equal "app/views/application/index.html.erb:4", result[0]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册