Forum: RSpec what's the different between ([@weather]) and (@weather)?

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Zhenning G. (Guest)
on 2009-03-26 08:23
before do
  @weather = mock_model(Weather)

I saw this code on peepcode, but I'm a little confused the
mostly, we just and_return(@weather), don't we? so, what is the meaning
of  and_return([@weather]) ?
This topic is locked and can not be replied to.