First of all, you should be careful with any call to stub.
You probably want to use stub just to simulate a behavior, one that you don’t want to test in your current test.
For example: You may want to use stub with a remote service, an API call.
First of all, you should be careful with any call to stub.
You probably want to use stub just to simulate a behavior, one that you don’t want to test in your current test.
For example: You may want to use stub with a remote service, an API call.
You have a local Postgres database that’s ready to go and you want your server to have the same database.
If you ever find this problem (Github Issue) you should know that WillPaginate 3.0 isn’t backwards compatible. This also is tightly coupled with the new Active Record implementation (Now it returns ActiveRecord::Relation, which are lazy arrays) This solved the problem I was having: 12 # app/config/initializers/liquid.rb require ‘will_paginate/array’ Be careful when you upgrade your [...]