method

run_predicate_on

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

Method deprecated or moved

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

run_predicate_on(actual)
public

No documentation available.

# File lib/spec/matchers/be.rb, line 18
      def run_predicate_on(actual)
        begin
          return @result = actual.__send__(predicate, *@args)
        rescue NameError => predicate_missing_error
          "this needs to be here or rcov will not count this branch even though it's executed in a code example"
        end

        begin
          return @result = actual.__send__(present_tense_predicate, *@args)
        rescue NameError
          raise predicate_missing_error
        end
      end