[rspec-users] Stubbing through multiple layers

Courtenay court3nay at gmail.com
Sun Jan 10 08:40:40 EST 2010


On Sat, Jan 9, 2010 at 7:38 PM, Sean DeNigris
<trusted08 at clipperadams.com> wrote:
>>   window = stub('window', :title => "programming_ruby_1.9.pdf")
>>   preview = stub('preview', :front_window => window)
> Perfect - so easy!  Thanks.
>

There's also stub_chain, which is probably a Bad Thing but helps break
through layers of dependencies.


More information about the rspec-users mailing list