Skip to content

Commit fc1badb

Browse files
committed
Fix Action View deprecation warning
Rails 6.0+ prints a deprecation warning when calling ActionView::Base.new without a lookup context.
1 parent 06b1fdf commit fc1badb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/test_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def setup
2020
tmp = File.expand_path("../../tmp", __FILE__)
2121
@manifest = Sprockets::Manifest.new(@assets, tmp)
2222

23-
@view = ActionView::Base.new
23+
@view = ActionView::Base.new(ActionView::LookupContext.new([]))
2424
@view.extend ::Sprockets::Rails::Helper
2525
@view.assets_environment = @assets
2626
@view.assets_manifest = @manifest

0 commit comments

Comments
 (0)