Class: Lookout::Expected::Classes::Exception
- Defined in:
- lib/lookout-3.0/expected/classes/exception.rb
Overview
Represents expected values that are descendants of Exception.
Instance Method Summary collapse
-
#expect(file, line) {|class| ... } ⇒ Expect::Classes::Exception
An expect block for the receiver at LINE in FILE that’ll yield the #expected exception class and expect it or one of its descendants to be raised.
Methods inherited from Object
Instance Method Details
#expect(file, line) {|class| ... } ⇒ Expect::Classes::Exception
Returns An expect block for the receiver at LINE in FILE that’ll yield the #expected exception class and expect it or one of its descendants to be raised.
11 12 13 |
# File 'lib/lookout-3.0/expected/classes/exception.rb', line 11 def expect(file, line, &block) Lookout::Expect::Classes::Exception.new(self, file, line, &block) end |