Class: Lookout::Expectations::State::Warning
- Inherits:
-
Lookout::Expectations::State
- Object
- Lookout::Expectations::State
- Lookout::Expectations::State::Warning
- Defined in:
- lib/lookout/expectations/state/warning.rb
Instance Attribute Summary
Attributes included from Lookout::Expectation
Instance Method Summary collapse
Methods included from Lookout::Expectation
#evaluate, #initialize, on, #stub, #with_verbose
Instance Method Details
#evaluate_with_stubs ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/lookout/expectations/state/warning.rb', line 6 def evaluate_with_stubs @output = StringIO.new saved_stderr = $stderr $stderr = @output begin with_verbose do super end ensure $stderr = saved_stderr end end |