method

verify_message

Importance_0
1.3.1 - Show latest stable - 0 notes - Class: Spec::Matchers::RaiseException
verify_message() 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_exception.rb, line 48
      def verify_message
        case @expected_message
        when nil
          true
        when Regexp
          @expected_message =~ @actual_exception.message
        else
          @expected_message == @actual_exception.message
        end
      end
Register or log in to add new notes.