aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/testing/test_process.rb
Commit message (Collapse)AuthorAgeFilesLines
* Remove `assigns` and `assert_template`.Guo Xiang Tan2015-05-301-3/+3
|
* Mark unused variables and make some style fixesAgis Anastasopoulos2013-04-081-1/+1
| | | | It'd be a nice convention to mark the unused variables like this, now that Ruby 2 will issue no warnings for such vars being unused.
* Use File.join to better integrate fixture_path in fixture_file_upload.Ben Woosley2012-11-261-5/+7
|
* 1.9 hash syntax changes to docsAvnerCohen2012-10-311-2/+2
|
* assigns(:foo) should not convert @foo's keys to strings if it happens to be ↵Will Bryant2012-02-181-1/+2
| | | | a hash
* TestCase should respect the view_assigns API instead of pulling variables on ↵José Valim2011-10-021-6/+1
| | | | its own.
* Get the fixture_path from self.class instead of ActiveSupport::TestCase.David Chelimsky2011-06-251-1/+1
| | | | | | This allows test classes that are not subclasses of ActiveSupport::TestCase (like those in rspec-rails) to interact with with this variable without having to reference ActiveSupport::TestCase.
* Add missing require for cookies middlewareAndrew White2011-06-041-0/+1
|
* Refactor ActionController::TestCase cookiesAndrew White2011-06-041-1/+1
| | | | | | | | | | | | | | | | | | Assigning cookies for test cases should now use cookies[], e.g: cookies[:email] = 'user@example.com' get :index assert_equal 'user@example.com', cookies[:email] To clear the cookies, use clear, e.g: cookies.clear get :index assert_nil cookies[:email] We now no longer write out HTTP_COOKIE and the cookie jar is persistent between requests so if you need to manipulate the environment for your test you need to do it before the cookie jar is created.
* typoJason Dew2011-05-131-1/+1
|
* Improve testing of cookies in functional tests:Andrew White2011-03-061-1/+1
| | | | | | | | | - cookies can be set using string or symbol keys - cookies are preserved across calls to get, post, etc. - cookie names and values are escaped - cookies can be cleared using @request.cookies.clear [#6272 state:resolved]
* Make cookies hash in ActionDispatch::TestProcess indifferent access [#5761 ↵David Trasbo2010-11-071-1/+1
| | | | | | state:committed] Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Some require indifferent_access addedSantiago Pastorino2010-04-211-0/+1
| | | | Signed-off-by: Xavier Noria <fxn@ubuntu.(none)>
* access assigns as a method or hash, with strings or symbols [#4431 ↵David Chelimsky2010-04-171-2/+2
| | | | state:resolved]
* AD::TestProcess relies on request.flash, so let's load it.José Valim2010-02-161-0/+2
|
* TestProcess belongs in ADJoshua Peek2009-12-121-0/+42