Re: [rspec-users] what's the different between ( [...@weather]) and (@weather)?

2009-03-26 Thread Andrea Jahn
quot;Zhenning Guan" *Gesendet:* 26.03.09 07:54:56 *An:* rspec-users@rubyforge.org *Betreff:* [rspec-users] what's the different between ([...@weather]) and (@weather)? before do @weather = mock_model(Weather) Weather.stub!(:find).and_return([...@weather]) end I saw this code o

[rspec-users] what's the different between ([...@weather]) and (@weather)?

2009-03-25 Thread Zhenning Guan
before do @weather = mock_model(Weather) Weather.stub!(:find).and_return([...@weather]) end I saw this code on peepcode, but I'm a little confused the and_return([...@weather]). mostly, we just and_return(@weather), don't we? so, what is the meaning of and_return([...@weather]) ? -- Posted v