Sha256: 46d87a1b0e6f1648353cf003a4ac39776ddd5743d3ca46c98cc555d3190a3d18
Contents?: true
Size: 616 Bytes
Versions: 6877
Compression:
Stored size: 616 Bytes
Contents
module RSpec module Matchers module BuiltIn # @api private # Provides the implementation for `be_a_kind_of`. # Not intended to be instantiated directly. class BeAKindOf < BaseMatcher private def match(expected, actual) actual.kind_of?(expected) rescue NoMethodError raise ::ArgumentError, "The #{matcher_name} matcher requires that " \ "the actual object responds to #kind_of? method " \ "but a `NoMethodError` was encountered instead." end end end end end
Version data entries
6,877 entries across 6,810 versions & 75 rubygems