Flowdock
method

exception_from

Importance_0
1.1.12 - Show latest stable - 0 notes - Class: Spec::Matchers
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.