method

matches?

rspec latest stable - Class: Spec::Matchers::Pass

Method deprecated or moved

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

matches?(proc, &block)
public

No documentation available.

# File spec/spec_helper.rb, line 26
      def matches?(proc, &block)
        begin
          proc.call
          true
        rescue Exception => @error
          false
        end
      end