diff options
author | Arun Agrawal <arunagw@gmail.com> | 2011-10-29 15:45:04 +0530 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2011-10-29 16:09:50 +0530 |
commit | 3fa8f362ad09a6f94ab012094014e31513ee36e0 (patch) | |
tree | 95a009c72a5ceb75556908a1051f44d7e81042f5 /railties | |
parent | 74f3f19a8345220949a1cb06030b58c621c7f798 (diff) | |
download | rails-3fa8f362ad09a6f94ab012094014e31513ee36e0.tar.gz rails-3fa8f362ad09a6f94ab012094014e31513ee36e0.tar.bz2 rails-3fa8f362ad09a6f94ab012094014e31513ee36e0.zip |
method redefined warning removed!
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/test_unit/testing.rake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/test_unit/testing.rake b/railties/lib/rails/test_unit/testing.rake index fa01f42c5b..3d87529ad4 100644 --- a/railties/lib/rails/test_unit/testing.rake +++ b/railties/lib/rails/test_unit/testing.rake @@ -61,6 +61,7 @@ end # Recreated here from Active Support because :uncommitted needs it before Rails is available module Kernel + remove_method :silence_stderr # Removing old method to prevent method redefined warning def silence_stderr old_stderr = STDERR.dup STDERR.reopen(RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ ? 'NUL:' : '/dev/null') |