Sha256: 930eef6ffa3bc7d55d37d808a7206aaf4dfddd2c51cadbad4ba4234231f2a69c
Contents?: true
Size: 483 Bytes
Versions: 19
Compression:
Stored size: 483 Bytes
Contents
module Pancake module Matchers class InheritFrom def initialize(expected) @expected = expected end def matches?(target) @target = target @target.ancestors.include?(@expected) end def failure_message "expected #{@target} to inherit from #{@expected} but did not" end end def inherit_from(expected) InheritFrom.new(expected) end end # Matchers end # Pancake
Version data entries
19 entries across 19 versions & 2 rubygems