Anyone knows how to test cookies.permanent?
On Feb 8, 2011 5:36 PM, "João Pereira"
<joaomiguel.pereira-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
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
http://groups.google.com/group/rubyonrails-talk?hl=en.