RSpec: Stub private method September 9, 2023 by Tarik should_receive(:method) works whether the visibility of :method is public or private.