diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-01-19 10:24:22 -0800 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-01-19 10:24:22 -0800 |
commit | b1b21f9325bca6988f261e0a489cd319fb97d0fa (patch) | |
tree | 51f4c2dff6dfbf238ef822b7b02c00c6553c0ed5 | |
parent | 935d235f90ec7c25cd2b7b3cccfebfe8a4ebc3da (diff) | |
parent | 0e9144dcecb1a21627ec66ca3578308c43368ee9 (diff) | |
download | rails-b1b21f9325bca6988f261e0a489cd319fb97d0fa.tar.gz rails-b1b21f9325bca6988f261e0a489cd319fb97d0fa.tar.bz2 rails-b1b21f9325bca6988f261e0a489cd319fb97d0fa.zip |
Merge pull request #13745 from nextgearcapital/master
set encoding for pipe to binary mode
-rw-r--r-- | activerecord/test/cases/base_test.rb | 2 | ||||
-rw-r--r-- | activerecord/test/cases/connection_management_test.rb | 2 | ||||
-rw-r--r-- | activesupport/lib/active_support/testing/isolation.rb | 2 |
3 files changed, 6 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 diff --git a/activesupport/lib/active_support/testing/isolation.rb b/activesupport/lib/active_support/testing/isolation.rb index 75ead48376..908af176be 100644 --- a/activesupport/lib/active_support/testing/isolation.rb +++ b/activesupport/lib/active_support/testing/isolation.rb @@ -37,6 +37,8 @@ module ActiveSupport module Forking def run_in_isolation(&blk) read, write = IO.pipe + read.binmode + write.binmode pid = fork do read.close |