search for: testapplicationcontrol

Displaying 1 result from an estimated 1 matches for "testapplicationcontrol".

2007 Mar 19
0
cookies
How do I set cookies in a spec so I can see them in my controller, please? Conversely, why doesn''t this work... require File.dirname(__FILE__) + ''/../spec_helper'' class TestApplicationController < ApplicationController def index @seen = cookies[''auth_token''] || ''NOT seen!'' puts cookies.inspect # {"auth_token"=>42}, see below render :text => ''testing'' # don''t look for view end end co...