aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
Commit message (Collapse)AuthorAgeFilesLines
* Methods like status and location are interfering with redirect_to [Closes #2511]Franck Verrot2011-08-141-0/+5
|
* moving test_generate to an integration test with one assert per testAaron Patterson2011-08-122-108/+183
|
* Fix the issue where default_url_options is being cached on test cases. ↵thoefer2011-08-011-0/+29
| | | | | | Closes #1872. Closes #2031. Signed-off-by: José Valim <jose.valim@gmail.com>
* Merge pull request #2379 from arunagw/extra_require_removalSantiago Pastorino2011-07-311-1/+0
|\ | | | | Removing extra requires from the test. Already loaded in abstract_unit.
| * Removing extra requires from the test. Already loaded in abstract_unit.Arun Agrawal2011-07-311-1/+0
| |
* | remove extra require for 'active_support/dependencies' as it is required in ↵Vishnu Atrai2011-07-311-1/+0
|/ | | | abstract_unit.rb
* There is no need to be destructive with the passed-in options.thedarkone2011-07-281-0/+9
| | | | This fixes a bug that is caused by Resource/SingletonResource mangling resource options when using inline "multi"-resource declarations.
* - added ActionView::PartialRenderer#merge_path_into_partial(path, partial)Gaston Ramos2011-07-241-1/+1
| | | | fix issues/1951
* - added test case for issue:Gaston Ramos2011-07-241-0/+14
| | | | | https://github.com/rails/rails/issues/1951 Namespaced model partial_path is wrong in namespaced controllers
* Ensure that status codes are logged properlyJesse Storimer2011-07-181-0/+19
| | | | | | Needed to move AC::Metal::Instrumentation before AM::Metal::Rescue so that status codes rendered from rescue_from blocks are logged properly.
* Remove stream at the class level.José Valim2011-07-061-1/+1
| | | | | | This is because only template rendering works with streaming. Setting it at the class level was also changing the behavior of JSON and XML responses, closes #1337.
* provide a more explicit message when using url_for with nilDamien Mathieu2011-07-021-0/+7
| | | This fixes the problem of having a non-explicit message when the :location option is not provided in respond_with.
* Make sure respond_with with :js tries to render a template in all casesJosé Valim2011-06-301-6/+15
|
* Make send_file guess content-type from file extension, if type wasn't ↵Esad Hajdarevic2011-06-281-0/+19
| | | | supplied (Issue #1847). Update tests & documentation.
* Get the fixture_path from self.class instead of ActiveSupport::TestCase.David Chelimsky2011-06-251-0/+7
| | | | | | 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.
* Tests only after filters in cache sweepersJeroen Jacobs2011-06-221-0/+5
|
* remove meaningless assert trueNeeraj Singh2011-06-111-1/+0
|
* expected message should come firstNeeraj Singh2011-06-111-2/+2
|
* try not to use assert_blank when nil will wouldNeeraj Singh2011-06-111-2/+2
| | | | | | be considered as failure Test for specific value to the extent possible
* add missing ensureNeeraj Singh2011-06-101-0/+1
|
* replaced and with && as per coding guidelinesNeeraj Singh2011-06-101-1/+1
|
* The test name is misleading. It saysNeeraj Singh2011-06-101-1/+1
| | | | | | | | | | | | test_should_cache_with_trailing_slash_on_url A trailing slash is removed when a page is cached. What the test meant to say was : a url with trailing slash should be cached and the cached page should not have any trailing slash. This patch clarifies the name a bit.
* remove unused user_controller from testNeeraj Singh2011-06-081-3/+0
|
* Refactor ActionController::TestCase cookiesAndrew White2011-06-041-2/+2
| | | | | | | | | | | | | | | | | | 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.
* fix creating an empty route on 1.8. Closes #1210Damien Mathieu2011-06-011-0/+6
|
* Corrected some typos and American vs. Queen's English issuesLee Reilly2011-05-291-2/+2
|
* Merge pull request #1203 from dchelimsky/stringify-parameter-values-in-testsJosé Valim2011-05-281-0/+10
|\ | | | | Stringify param values in controller tests.
| * Stringify param values in controller tests.David Chelimsky2011-05-221-0/+10
| | | | | | | | | | | | | | | | This reduces false positives that come from using ints in params in tests, which do not get converted to strings in the tests. In implementations going through rack, they do get converted to strings. - David Chelimsky and Sam Umbach
* | don't raise an exception if the format isn't recognizeddmathieu2011-05-261-0/+6
| | | | | | | | Fixed while traveling to heuruko
* | removed deprecated methods, and related tests, from ActionPackJosh Kalderimis2011-05-244-40/+3
| |
* | Replace references to ActiveSupport::SecureRandom with just SecureRandom, ↵Jon Leighton2011-05-231-3/+3
| | | | | | | | and require 'securerandom' from the stdlib when active support is required.
* | Always initialize @title in caching test to avoid uninitialized instance ↵wycats2011-05-221-0/+3
|/ | | | variable warning
* renamed the wrap_parameters :only and :except options to :include and ↵Josh Kalderimis2011-05-192-9/+9
| | | | :exclude to make it consistent with controller filters
* add more robust test for wrapping params with anonymous classDavid Chelimsky2011-05-171-25/+45
|
* better test nameDavid Chelimsky2011-05-171-1/+1
|
* add failing test for https://github.com/rails/rails/issues/1089David Chelimsky2011-05-171-0/+7
|
* Make ParamsWrapper calling newly introduced `Model.attribute_names` instead ↵Prem Sichanugrist2011-05-151-10/+8
| | | | of `.column_names`
* Do not try to call `column_names` on the abstract class.Prem Sichanugrist2011-05-151-1/+14
| | | Normally the table for abstract class won't be existed, so we should not trying to call `#column_names` on it.
* Test csrf token param name customizationDavid Lee2011-05-101-7/+18
|
* Get around weird missing constant error caused by AS instead of simply ↵José Valim2011-05-111-21/+24
| | | | raising NameError, closes #477.
* Revert to old semantics, use available_action? instead of action_method?.José Valim2011-05-061-4/+4
|
* controller's prefixes are now added to LookupContext.Nick Sutterer2011-05-031-0/+4
|
* Fix typos in test method namesVijay Dev2011-05-031-3/+3
|
* raise an error if the old router draw method is used, along with a message ↵Josh Kalderimis2011-05-031-0/+6
| | | | advising them to either upgrade their routes or add rails_legacy_mapper to their Gemfile
* Fix broken params_wrapper_test on 1.8.7 :bomb:Prem Sichanugrist2011-05-031-36/+80
| | | | | I have to keep in mind that 1.8.7 does *not* preserve the hash order. Guys, let's move to use 1.9.2 in production!
* Improve performance for filtered parameters and add tests.José Valim2011-05-031-0/+11
|
* Move most processing to load time for performance and improve test suite.José Valim2011-05-031-12/+27
|
* Add `ActionController::ParamsWrapper` to wrap parameters into a nested hashPrem Sichanugrist2011-05-031-0/+187
| | | This will allow us to do a rootless JSON/XML request to server.
* Tidy up pending TODOs after discussion with Mr. Gatoz (@wycats).José Valim2011-05-011-7/+7
|
* log errors when an exception happens when streaming.José Valim2011-05-011-0/+13
|