What's the different between ([@weather]) and (@weather)?

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 forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs