Commit b503b14fc8d214e199beb8472b973de3d849c241
1 parent
d56fa7ab
Exists in
master
and in
17 other branches
Fixed deprecation warning in tests [skip ci]
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/pagination_test.rb
@@ -90,7 +90,7 @@ class PaginationTest < Minitest::Test | @@ -90,7 +90,7 @@ class PaginationTest < Minitest::Test | ||
90 | I18n.load_path = Dir["test/support/kaminari.yml"] | 90 | I18n.load_path = Dir["test/support/kaminari.yml"] |
91 | I18n.backend.load_translations | 91 | I18n.backend.load_translations |
92 | 92 | ||
93 | - view = ActionView::Base.new | 93 | + view = ActionView::Base.new(ActionView::LookupContext.new([])) |
94 | 94 | ||
95 | store_names ["Product A"] | 95 | store_names ["Product A"] |
96 | assert_equal "Displaying <b>1</b> product", view.page_entries_info(Product.search("product")) | 96 | assert_equal "Displaying <b>1</b> product", view.page_entries_info(Product.search("product")) |