method
define_methods_from_predicate_matchers
1.1.4 -
Show latest stable
-
0 notes -
Class: Spec::Example::ExampleGroupMethods
- 1.1.4 (0)
- 1.1.12 (0)
- 1.2.0
- 1.2.8
- 1.3.0
- 1.3.1
- What's this?
define_methods_from_predicate_matchers(# :nodoc:)
private
Hide source
# File lib/spec/example/example_group_methods.rb, line 378 def define_methods_from_predicate_matchers # :nodoc: all_predicate_matchers = predicate_matchers.merge( Spec::Runner.configuration.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