Class: Lookout::Expected::Classes::Exception

Inherits:
Object show all
Defined in:
lib/lookout-3.0/expected/classes/exception.rb

Overview

Represents expected values that are descendants of Exception.

Instance Method Summary collapse

Methods inherited from Object

#difference

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.

Yield Parameters:

  • class (Class)

Yield Returns:

  • (Class)

Returns:

  • (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



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