[rspec-users] Controller spec gives strange error
Damian Terentiev
lists at ruby-forum.com
Thu Jul 3 03:51:32 EDT 2008
David Chelimsky wrote:
> On Jul 3, 2008, at 2:24 AM, Damian Terentiev wrote:
>
>> def set_site_language
>> @site_language = cookie['lang'] ?
>> Language.find_by_code(cookie['lang']) :
>> Language.find(:first)
>
> Shouldn't this be cookies, not cookie? Doesn't explain why the test
> passes when the example fails, but it seems that both should be
> raising errors on this.
Yes, there should be `cookies`, but the problem still exists.
--
Posted via http://www.ruby-forum.com/.
More information about the rspec-users
mailing list