aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/render_json_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Stop using deprecated `render :text` in testPrem Sichanugrist2015-07-171-1/+1
| | | | | | | | | This will silence deprecation warnings. Most of the test can be changed from `render :text` to render `:plain` or `render :body` right away. However, there are some tests that needed to be fixed by hand as they actually assert the default Content-Type returned from `render :body`.
* Migrating xhr methods to keyword arguments syntaxKir Shatrov2015-02-011-2/+2
| | | | | | | | | | | | in `ActionController::TestCase` and `ActionDispatch::Integration` Old syntax: `xhr :get, :create, params: { id: 1 }` New syntax example: `get :create, params: { id: 1 }, xhr: true`
* Address CVE-2014-4671 (JSONP Flash exploit)Greg Campbell2014-07-091-1/+1
| | | | | | Adds a comment before JSONP callbacks. See http://miki.it/blog/2014/7/8/abusing-jsonp-with-rosetta-flash/ for more details on the exploit in question.
* CSRF protection from cross-origin <script> tagsJeremy Kemper2013-12-171-2/+2
| | | | Thanks to @homakov for sounding the alarm about JSONP-style data leaking
* Add changelog entry for jsonp mimetype change, fix failing testCarlos Antonio da Silva2012-04-291-1/+1
| | | | Fix failing test: Mime::JS generates "text/javascript"
* Merge pull request #2321 from omjokine/masterJosé Valim2012-04-291-1/+1
|\ | | | | JSONP should use mimetype application/javascript
| * fixed test case test_render_json_with_callback to use content_type ↵Olli Jokinen2011-07-281-1/+1
| | | | | | | | application/javascript
* | Moving to logger methods to ActiveSupport LoggerKarunakar (Ruby)2011-12-241-1/+2
| |
* | Revert the serializers API as other alternatives are now also under discussionJosé Valim2011-11-251-48/+0
| |
* | Rely solely on active_model_serializer and remove the fancy constant lookup.José Valim2011-11-231-1/+15
| |
* | Initial commit of serializer supportJose and Yehuda2011-10-151-0/+34
|/
* render_to_string must ensure that response_bodyNeeraj Singh2011-01-251-0/+10
| | | | | | | | is nil [ #5875 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* renderer calls object.to_json when rendering :json => object [#5655 ↵Diego Carrion2010-09-271-0/+13
| | | | | | state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* Always downstream given options in :json, :xml and :js renderers and add ↵José Valim2010-04-221-0/+18
| | | | tests for it.
* Cleanup render callstack and make render(:json => {}, :status => 401) work ↵José Valim2010-02-241-0/+10
| | | | again.
* Namespace TestControllers inside their test case classJoshua Peek2009-09-191-27/+31
|
* Ported over render :file tests.Yehuda Katz + Carl Lerche2009-05-131-0/+80