new(error_or_message=Exception, message=nil, &block) public

No documentation

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

Hide source
# File lib/spec/matchers/raise_error.rb, line 4
      def initialize(error_or_message=Exception, message=nil, &block)
        @block = block
        case error_or_message
        when String, Regexp
          @expected_error, @expected_message = Exception, error_or_message
        else
          @expected_error, @expected_message = error_or_message, message
        end
      end
Register or log in to add new notes.