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
What is the best practice when it comes to testing "infinite loops"?

My basic logic is to have an infinite loop running somewhere and test it as best as possible. The reason …

ruby-on-rails ruby tdd rspec rr