Sha256: 29b11f06ca647b315c855ee0ac697b286de40829371869f94fc31b4a9935222c
Contents?: true
Size: 407 Bytes
Versions: 5
Compression:
Stored size: 407 Bytes
Contents
class Spec::Example::ExampleGroup def be_a_kind_of(expected) Matcher.new :be_a_kind_of, expected do |_expected_| match do |actual| # actual.kind_of?(_expected_) ot = _expected_.methods(true).map {|m| _expected_.method(m) } at = actual.class.methods(true).map {|m| actual.class.method(m) } at.select {|m| !ot.include? m }.empty? end end end end
Version data entries
5 entries across 5 versions & 1 rubygems