1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionview/test
João Britto c2afa05561 Improve ERB dependency detection.
The current implementation can't handle some special cases of oddly-formatted Ruby. Now we are able to detect them:

* Multi-line arguments on the `render` call
* Strings containing quotes, e.g. `"something's wrong"`
* Multiple kinds of identifiers - instance variables, class variables and globals
* Method chains as arguments for the `render` call

Also, this fix reduces the rate of "false positives" which showed up when we had calls/access to identifiers containing `render`, like `surrender` and `rendering`.
2014-01-09 20:36:59 -02:00
..
actionpack Unused class in AV test 2013-12-25 10:33:42 +09:00
activerecord Switched to use display:none in extra_tags_for_form method. 2014-01-05 17:16:22 +00:00
fixtures Unused classes in AV tests 2013-12-24 11:04:49 +09:00
lib/controller Moved viewpathstest into actionview/test/actionpack/controller 2013-10-09 20:09:33 +02:00
template Improve ERB dependency detection. 2014-01-09 20:36:59 -02:00
tmp Add tmp dir in actionview/test/ 2013-08-05 01:24:14 +05:30
abstract_unit.rb Disable available locales checks to avoid warnings running the tests 2013-12-17 09:05:41 -02:00
active_record_unit.rb