Re: [rspec-users] Understanding how to better use stub! and stub_chain

2010-06-01 Thread Joseph DelCioppio
See that's a great idea. I wish I would have thought of that myself. Thanks Matt. On Jun 1, 3:31 am, Matt Wynne wrote: > Did you try looking at the specs for any examples? I imagine there'd be a > couple... ;) > > > > > > Joseph DelCioppio wrote: > >I've been looking through the RSpec source t

Re: [rspec-users] Understanding how to better use stub! and stub_chain

2010-06-01 Thread Matt Wynne
Did you try looking at the specs for any examples? I imagine there'd be a couple... ;) Joseph DelCioppio wrote: >I've been looking through the RSpec source to better understand how >RSpec works and I've got a question about the functionality of stub!. >I noticed that you can pass a symbol to st

[rspec-users] Understanding how to better use stub! and stub_chain

2010-05-31 Thread Joseph DelCioppio
I've been looking through the RSpec source to better understand how RSpec works and I've got a question about the functionality of stub!. I noticed that you can pass a symbol to stub!, which is usually how I use it, some combination of stub!(:method).with(inputs). However, I'm noticing that you ca