mirror of
https://github.com/internetee/registry.git
synced 2025-06-08 21:54:48 +02:00
Deprecate TaskTestCase
class
This commit is contained in:
parent
c20e077b65
commit
a09a6820fd
1 changed files with 3 additions and 1 deletions
|
@ -4,6 +4,8 @@ class TaskTestCase < ActiveSupport::TestCase
|
||||||
# This suppresses default stdout and makes Rails.env.test? checks unnecessary.
|
# This suppresses default stdout and makes Rails.env.test? checks unnecessary.
|
||||||
@original_stdout = $stdout
|
@original_stdout = $stdout
|
||||||
$stdout = File.open(File::NULL, 'w')
|
$stdout = File.open(File::NULL, 'w')
|
||||||
|
ActiveSupport::Deprecation.warn('`TaskTestCase` class will be removed soon.' \
|
||||||
|
' Use `capture_io` and `assert_output` instead')
|
||||||
end
|
end
|
||||||
|
|
||||||
teardown do
|
teardown do
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue