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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Ffd881829651935d986c52d12279befb?d=identicon&s=25 Zhenning Guan (rubyernewbie)
on 2009-03-26 07:23
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]) ?
This topic is locked and can not be replied to.