btakita / rr

RR (Double Ruby) is a test double framework that features a rich selection of double techniques and a terse syntax.
http://github.com/rr/rr
MIT License
501 stars 58 forks source link

stub or mock Module::Method.new #89

Closed geremyCohen closed 11 years ago

geremyCohen commented 11 years ago

Probably an easy answer, but I'm stuck, I want to stub:

Module::Method.new

for example:

stub(Module::Method).new {}
geremyCohen commented 11 years ago

I just answered my own question!