method

exception_from

rspec latest stable - Class: Spec::Matchers

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (1.1.12) is shown here.

exception_from(&block)
public

No documentation available.

# File spec/spec_helper.rb, line 33
    def exception_from(&block)
      exception = nil
      begin
        yield
      rescue StandardError => e
        exception = e
      end
      exception
    end