aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/testing/test_process.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use frozen string literal in actionpack/Kir Shatrov2017-07-291-0/+2
|
* [Action Dispatch] require => require_relativeAkira Matsuda2017-07-011-2/+2
|
* Only move fixture_file_upload to IntegrationTestMatthew Draper2016-12-071-16/+20
| | | | | The rest of the helpers are better placed on Session -- and this is the only one that cares which class it is defined on.
* Only search fixture_path for files that can't be found directlyMatthew Draper2016-09-241-1/+2
| | | | | | | | | | When passed an already-valid file name, prepending the path is likely to create problems. This is particularly relevant for #26384, which adds fixture_path handling to test classes that previously didn't have it: any existing caller must have been manually locating the file, and we don't want to break them.
* applies new string literal convention in actionpack/libXavier Noria2016-08-061-2/+2
| | | | | The current code base is not uniform. After some discussion, we have chosen to go with double quotes by default.
* remove unused requireyuuji.yaginuma2016-01-301-1/+0
| | | | `with_indifferent_access` had been used in `assigns` method, but has been removed in ca83436.
* Remove ActionController::TestCase from documentationeileencodes2015-12-121-1/+1
| | | | | | | | | | | | | | | | | | In Rails 5.1 `ActionController::TestCase` will be moved out of Rails into it's own gem. Please use `ActionDispatch::IntegrationTest` going foward. Because this will be moved to a gem I used `# :stopdoc:` instead of deleting the documentation. This will remove it from the Rails documentation but still leave the method documented for when we move it to a gem. Guides have been updated to use the routing structure used in Integration and all test examples have been updated to inherit from `ActionDispatch::IntegrationTest` instead of `ActionController::TestCase. Fixes #22496
* sop passing host and secure to the build methodAaron Patterson2015-08-051-1/+1
| | | | | eventually we will make the cookie jar derive these values from the request object rather than save a reference to the values
* move env access to the request object.Aaron Patterson2015-08-051-1/+1
| | | | | | Accessing a request object has nice advantages over accessing a hash. If you use a missing method name, you'll get an exception rather than a `nil` (is one nice feature)
* Send cookies with requesteileencodes2015-07-071-1/+1
|
* 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