diff options
author | Anna Carey <acarey@discoverdsc.com> | 2014-01-17 16:49:10 -0500 |
---|---|---|
committer | Anna Carey <acarey@discoverdsc.com> | 2014-01-17 16:49:10 -0500 |
commit | 0e9144dcecb1a21627ec66ca3578308c43368ee9 (patch) | |
tree | 90d40dad607df998271e4d60a0928f1ae7a26e0c /activerecord | |
parent | 486db21f919c39cef76b487be45290b7561307e8 (diff) | |
download | rails-0e9144dcecb1a21627ec66ca3578308c43368ee9.tar.gz rails-0e9144dcecb1a21627ec66ca3578308c43368ee9.tar.bz2 rails-0e9144dcecb1a21627ec66ca3578308c43368ee9.zip |
set encoding to binmode for pipe
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/base_test.rb | 2 | ||||
-rw-r--r-- | activerecord/test/cases/connection_management_test.rb | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index 983bcd9826..ef1ebbb400 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -1380,6 +1380,8 @@ class BasicsTest < ActiveRecord::TestCase }) rd, wr = IO.pipe + rd.binmode + wr.binmode ActiveRecord::Base.connection_handler.clear_all_connections! diff --git a/activerecord/test/cases/connection_management_test.rb b/activerecord/test/cases/connection_management_test.rb index 00667cc52e..77d9ae9b8e 100644 --- a/activerecord/test/cases/connection_management_test.rb +++ b/activerecord/test/cases/connection_management_test.rb @@ -31,6 +31,8 @@ module ActiveRecord object_id = ActiveRecord::Base.connection.object_id rd, wr = IO.pipe + rd.binmode + wr.binmode pid = fork { rd.close |