diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-03-09 07:52:22 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2019-03-09 07:54:37 +0900 |
commit | 788272231cb75d9de454c45881421db9afea74cd (patch) | |
tree | 17da8d7d8ec182594eef6bdce0926d946341d83c /railties/test | |
parent | cd89082fa963a83f3f54daec976ab552707bca80 (diff) | |
download | rails-788272231cb75d9de454c45881421db9afea74cd.tar.gz rails-788272231cb75d9de454c45881421db9afea74cd.tar.bz2 rails-788272231cb75d9de454c45881421db9afea74cd.zip |
Fix "DEPRECATION WARNING: ActionView::Template#initialize requires a locals parameter"
Ref: #35411
Diffstat (limited to 'railties/test')
-rw-r--r-- | railties/test/backtrace_cleaner_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/backtrace_cleaner_test.rb b/railties/test/backtrace_cleaner_test.rb index 90e084ddca..ec512b6b64 100644 --- a/railties/test/backtrace_cleaner_test.rb +++ b/railties/test/backtrace_cleaner_test.rb @@ -18,7 +18,7 @@ class BacktraceCleanerTest < ActiveSupport::TestCase 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] |