aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/new_base/content_type_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Stop using deprecated `render :text` in testPrem Sichanugrist2015-07-171-9/+9
| | | | | | | | | 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`.
* Consistent usage of spaces in hashes across our codebaseRafael Mendonça França2015-01-291-2/+2
|
* Switch to kwargs in ActionController::TestCase and ActionDispatch::IntegrationKir Shatrov2015-01-291-2/+2
| | | | | | | | Non-kwargs requests are deprecated now. Guides are updated as well. `post url, nil, nil, { a: 'b' }` doesn't make sense. `post url, params: { y: x }, session: { a: 'b' }` would be an explicit way to do the same
* Remove default match without specified methodJose and Yehuda2012-04-241-1/+1
| | | | | | | | | | | | | | | | In the current router DSL, using the +match+ DSL method will match all verbs for the path to the specified endpoint. In the vast majority of cases, people are currently using +match+ when they actually mean +get+. This introduces security implications. This commit disallows calling +match+ without an HTTP verb constraint by default. To explicitly match all verbs, this commit also adds a :via => :all option to +match+. Closes #5964
* removes the RJS template handlerXavier Noria2011-04-131-8/+1
|
* Fixed routes to use new API in a few more actionpack testsPiotr Sarnacki2010-09-051-3/+9
|
* Added test get to js should have a header with content-type text/javascriptSantiago Pastorino2010-04-161-1/+8
|
* Tidy up a bit this test fileSantiago Pastorino2010-04-161-7/+2
|
* Revert "Add test case which check content type when rendering rjs" partial ↵Santiago Pastorino2010-04-161-9/+1
| | | | | | in html template" rendering rjs in html doesn't make sense, it would just output javascript into the template, no script tag This reverts commit dc251389d1ab4303b80a22642f4241940b73cbe7.
* Add test case which check content type when rendering rjs partial in html ↵Stanko Alexander2010-04-131-1/+9
| | | | | | template Signed-off-by: wycats <wycats@gmail.com>
* Redraw default routes on all internal integration tests. We don't need ↵Joshua Peek2009-10-031-3/+3
| | | | SimpleRouteCase anymore
* File extra test folders into controller, dispatch, or templateJoshua Peek2009-10-031-0/+111