# File lib/matchy/built_in/truth_expectations.rb, line 84 def satisfy(*obj) build_matcher(:satisfy, obj) do |receiver, matcher, args| @receiver, expected = receiver, args[0] matcher.positive_failure_message = "Expected #{@receiver.inspect} to satisfy given block." matcher.negative_failure_message = "Expected #{@receiver.inspect} to not satisfy given block." expected.call(@receiver) == true end end