aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/migration_test.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2015-01-07 15:29:45 +0900
committerYves Senn <yves.senn@gmail.com>2015-01-10 15:11:05 +0100
commit69e365d2f420572d186cb3e0373e067c1343d09f (patch)
tree710fd31b988c5a891807f6d3b8517c4916375f0f /activerecord/test/cases/migration_test.rb
parente47d6a31a57ae4f5ca1ce0fdfe1e18e7ac069e43 (diff)
downloadrails-69e365d2f420572d186cb3e0373e067c1343d09f.tar.gz
rails-69e365d2f420572d186cb3e0373e067c1343d09f.tar.bz2
rails-69e365d2f420572d186cb3e0373e067c1343d09f.zip
Use IO::NULL always
Diffstat (limited to 'activerecord/test/cases/migration_test.rb')
-rw-r--r--activerecord/test/cases/migration_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index 5829ef2100..7c2d3e81d6 100644
--- a/activerecord/test/cases/migration_test.rb
+++ b/activerecord/test/cases/migration_test.rb
@@ -939,7 +939,7 @@ class CopyMigrationsTest < ActiveRecord::TestCase
def silence_stream(stream)
old_stream = stream.dup
- stream.reopen(RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ? 'NUL:' : '/dev/null')
+ stream.reopen(IO::NULL)
stream.sync = true
yield
ensure