Module: Deprecation::Etest
- Defined in:
- lib/vex/base/deprecation.rb
Instance Method Summary collapse
Instance Method Details
#test_quiet ⇒ Object
42 43 44 45 46 47 |
# File 'lib/vex/base/deprecation.rb', line 42 def test_quiet STDERR.stubs(:puts) { raise "KJH" } Deprecation.quiet do Deprecation.report "Hey" end end |
#test_report ⇒ Object
36 37 38 39 40 |
# File 'lib/vex/base/deprecation.rb', line 36 def test_report STDERR.stubs(:puts).returns(nil) Deprecation.report "Hey" Deprecation.report "Hey" end |