aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/render_other_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Use `Mime[:foo]` instead of `Mime::Type[:FOO]` for back compatJeremy Daer2015-10-061-1/+1
| | | | | | | | | | | | | | | | | Rails 4.x and earlier didn't support `Mime::Type[:FOO]`, so libraries that support multiple Rails versions would've had to feature-detect whether to use `Mime::Type[:FOO]` or `Mime::FOO`. `Mime[:foo]` has been around for ages to look up registered MIME types by symbol / extension, though, so libraries and plugins can safely switch to that without breaking backward- or forward-compatibility. Note: `Mime::ALL` isn't a real MIME type and isn't registered for lookup by type or extension, so it's not available as `Mime[:all]`. We use it internally as a wildcard for `respond_to` negotiation. If you use this internal constant, continue to reference it with `Mime::ALL`. Ref. efc6dd550ee49e7e443f9d72785caa0f240def53
* stop calling deprecated methodsAaron Patterson2015-09-211-1/+1
| | | | | We should be asking the mime type method for the mime objects rather than via const lookup
* Add and remove renderer inside the test to prevent leak.Zuhao Wan2014-05-281-4/+7
|
* removes support for render :updateXavier Noria2011-04-131-237/+0
|
* Initialize ivars in tests.Emilio Tagua2010-09-281-0/+1
|
* Use parentheses when using assert_match followed by a regexp to avoid warnings.Emilio Tagua2010-09-271-3/+3
|
* Simpler RenderOption API -- removes the need for registering the types and ↵Carlhuda2009-12-091-0/+14
| | | | extending a module
* Namespace TestControllers inside their test case classJoshua Peek2009-09-191-123/+128
|
* Get controller/render_other_test.rb to pass on new base and fixed a bug in ↵Yehuda Katz + Carl Lerche2009-05-221-3/+11
| | | | new base with regards to rendering layouts.
* Added the :rjs render optionYehuda Katz + Carl Lerche2009-05-211-0/+8
|
* Ported over render :file tests.Yehuda Katz + Carl Lerche2009-05-131-0/+222