Flowdock
method

define_methods_from_predicate_matchers

Importance_0
RSpec latest stable (1.3.1) - 0 notes - Class: Spec::Example::ExampleGroupMethods

Method deprecated or moved

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

These similar methods exist in 1.3.1:

define_methods_from_predicate_matchers(run_options) private

No documentation

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

Hide source
# File lib/spec/example/example_group_methods.rb, line 346
      def define_methods_from_predicate_matchers(run_options) # :nodoc:
        all_predicate_matchers = predicate_matchers.merge(
          run_options.predicate_matchers
        )
        all_predicate_matchers.each_pair do |matcher_method, method_on_object|
          define_method matcher_method do |*args|
            eval("be_#{method_on_object.to_s.gsub('?','')}(*args)")
          end
        end
      end
Register or log in to add new notes.