Anyone knows how to test cookies.permanent?

On Feb 8, 2011 5:36 PM, "João Pereira" <joaomiguel.pere...@gmail.com> 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@googlegroups.com.
To unsubscribe from this group, send email to 
rubyonrails-talk+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to