rails/actionview/test
Guilherme Mansur 526a5eb10c Empty array instead of nil for source_extract
The source_extract method will return nil when it can't find the file name in
the backtrace, methods that consume this method expect an array and the nil ends
up causing type errors down the road like it happened here: #36341. This
patch refactors the source_extract method so that it returns an empty
array instead of nil when it can't find the source code.

Co-authored-by: Kasper Timm Hansen <kaspth@gmail.com>
2019-07-14 15:04:25 -04:00
..
actionpack Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
activerecord Enable Layout/EmptyLinesAroundAccessModifier cop 2019-06-13 12:00:45 +09:00
fixtures Fix partial caching ignore repeated items issue 2019-04-04 09:59:06 +08:00
lib Fix rubocop violations 2019-06-14 23:32:15 +09:00
template Empty array instead of nil for source_extract 2019-07-14 15:04:25 -04:00
ujs Ensure non-mouse/programmatic clicks work with data-remote 2019-06-13 19:59:17 +02:00
abstract_unit.rb Run actionview tests in parallel 2019-06-05 18:40:08 -07:00
active_record_unit.rb Run actionview tests in parallel 2019-06-05 18:40:08 -07:00