Testing cookies.permanent.signed

João Pereira
Tue, 08 Feb 2011 17:36:24 -0000

Hi,

When using:

def some_action
cookies.permanent.signed[:cookie_name] = "somevalue"
end


How do I test it in functional tests?

I''m trying to user:

assert_equal "somevalue", cookies.permanent.signed[:cookie_name] but
I''m getting

NoMethodError: undefined method `permanent'' for #<Hash:0x9955598>

Thanks,

--
João Miguel Pereira
http://jpereira.eu

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at