search for: test_cookie

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

Did you mean: test_cookies
2010 Sep 01
4
NoMethodError: undefined method `force_encoding' for "Conten
...uire "test/chain/test_response_reader.rb"; require "test/test_authenticate.rb"; 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 &q...
2006 Apr 03
0
Cookies and 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, cookies[:foo] post :login, :user => { :name => users(:david).name, :password => users(:david).password, } assert_equal ''bar'', cookies[:foo] end Fails, saying that cookies[:foo] is <nil>. Is t...