1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/test
Genadi Samokovarov 707a433870 Work around for upstream Ruby bug #10685
In f6e293ec54 we avoided a segfault in the
tests, however I think we should try to avoid the crash, as it may
happen in user code as well.

Here is what I distiled the bug down to:

```ruby
# Rails case - works on 2.0, 2.1; crashes on 2.2
require 'action_dispatch'

ActionDispatch::Response.new(200, "Content-Type" => "text/xml")

# General case - works on 2.0, 2.1; crashes on 2.2
def foo(optional = {}, default_argument: nil)
end

foo('quux' => 'bar')
```
2015-03-01 16:31:20 +02:00
..
abstract Merge pull request #11790 from printercu/patch-3 2015-02-12 15:39:17 -02:00
assertions
controller fix NameError in skip_filter. callback doesn't exist. 2015-02-27 09:03:31 +09:00
dispatch Work around for upstream Ruby bug #10685 2015-03-01 16:31:20 +02:00
fixtures Merge pull request #18948 from kaspth/automatic-collection-caching 2015-02-25 11:54:07 -03:00
journey Removed magic comments # encoding: utf-8 , since its default from ruby 2.0 onwards. 2015-02-03 20:51:40 +05:30
lib/controller Removing unused fake models 2014-09-07 22:51:14 -03:00
routing Remove deprecate *_path helpers in email views 2015-01-04 11:58:42 -03:00
tmp
abstract_unit.rb Removing old helper that was necessary for compatibility with Ruby 1.8.x 2015-02-22 23:42:51 -03:00