Top "Rr" questions

RR (Double Ruby) is a test double framework that features a rich selection of double techniques and a terse syntax.

Stub (...) received unexpected message (...) with (no args)

I try to write a test using RR. What I need is a stub of a model object. describe ApplicationController …

ruby unit-testing testing stub rr
Stubbing when an object's constructor builds another object

So I've got some code that, grossly simplified, looks like this: class B def initialize opts @opts = opts end end …

ruby constructor rspec stubbing rr