Sha256: 4401bc25df26ff8c127d65ee34c962e4edc101b2d31565e130eb4f27b9796ca8
Contents?: true
Size: 485 Bytes
Versions: 34
Compression:
Stored size: 485 Bytes
Contents
module RSpec module Matchers module DSL # See RSpec::Matchers def define(name, &declarations) define_method name do |*expected| $matcher_execution_context = self RSpec::Matchers::Matcher.new name, *expected, &declarations end end alias_method :matcher, :define if RSpec.respond_to?(:configure) RSpec.configure {|c| c.extend self} end end end end RSpec::Matchers.extend RSpec::Matchers::DSL
Version data entries
34 entries across 34 versions & 4 rubygems