Flowdock
method

exception_from

Importance_0
RSpec latest stable (1.3.1) - 0 notes - 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

This method has no description. You can help the RSpec community by adding new notes.

Hide source
# File spec/spec_helper.rb, line 33
    def exception_from(&block)
      exception = nil
      begin
        yield
      rescue StandardError => e
        exception = e
      end
      exception
    end
Register or log in to add new notes.