search for: test_cookies

Displaying 2 results from an estimated 2 matches for "test_cookies".

2010 Sep 01
4
NoMethodError: undefined method `force_encoding' for "Conten
..."; require "test/test_bad_links.rb"; require "test/test_blank_form.rb"; require "test/test_checkboxes.rb"; require "test/test_content_type.rb"; require "test/test_cookie_class.rb"; require "test/test_cookie_jar.rb"; require "test/test_cookies.rb"; require "test/test_encoded_links.rb"; require "test/test_errors.rb"; require "test/test_field_precedence.rb"; require "test/test_follow_meta.rb"; require "test/test_form_action.rb"; require "test/test_form_as_hash.rb"; require &q...
2006 Apr 03
0
Cookies and functional tests
Hi there Is there any way that my functional tests can check to see if the controller has set a cookie? I''ve got this in a controller action; def login cookies[:foo] = ''bar'' end Using a web browser, I can see that the cookie is being set when the action is invoked. But, a functional test like this; def test_cookie assert_equal nil,