spec/paginate/action_view_spec.rb in paginate-3.0.0 vs spec/paginate/action_view_spec.rb in paginate-4.0.0
- old
+ new
@@ -13,10 +13,10 @@
File.expand_path("../../support/views", __FILE__)
)
@view.lookup_context.prefixes << "application"
@view.controller = @controller
@view.extend(Paginate::Helper)
- @view.stub request: @request
+ allow(@view).to receive_messages request: @request
@helper = Object.new
@helper.extend(Paginate::Helper)
Paginate.configure do |config|