aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/fixtures/actionpack
Commit message (Collapse)AuthorAgeFilesLines
* Prefer render template: in testsJohn Hawthorn2019-03-211-1/+1
| | | | | | | | | | | | Many tests were using `render file:`, but were only testing the behaviour of `render template:` (file: just allows more paths/ is less secure then template:). The reason for so many `render file:` is probably that they were the old default. This commit replaces `render file:` with `render template:` anywhere the test wasn't specifically interested in using `render file:`.
* Revert "Merge pull request #29540 from kirs/rubocop-frozen-string"Matthew Draper2017-07-029-9/+0
| | | | | This reverts commit 3420a14590c0e6915d8b6c242887f74adb4120f9, reversing changes made to afb66a5a598ce4ac74ad84b125a5abf046dcf5aa.
* Enforce frozen string in RubocopKir Shatrov2017-07-019-0/+9
|
* Fix all style guides violationsRafael Mendonça França2017-04-197-9/+9
| | | | | Closes #28382 Closes #28651
* Stop using deprecated `render :text` in testPrem Sichanugrist2015-07-171-0/+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`.
* Remove `assigns` and `assert_template`.Guo Xiang Tan2015-05-302-1/+2
|
* Added PartialIteration class used when rendering collectionsJoel Junström2014-07-162-0/+2
| | | | | | | | | | | | The iteration object is available as the local variable "template_name_iteration" when rendering partials with collections. It gives access to the +size+ of the collection beeing iterated over, the current +index+ and two convinicence methods +first?+ and +last?+ "template_name_counter" variable is kept but is deprecated. [Joel Junström + Lucas Uyezu]
* Move remaining layouts tests to AVŁukasz Strzałkowski2013-08-2516-0/+26
|
* Move render_test to AVŁukasz Strzałkowski2013-08-2591-0/+150