Object
# File lib/eim_xml/matcher.rb, line 4 def initialize(expected) @expected = expected end
# File lib/eim_xml/matcher.rb, line 13 def failure_message "expected #{@target.inspect} must have #{@expected}, but not." end
# File lib/eim_xml/matcher.rb, line 8 def matches?(target) @target = target @target.has?(@expected) end
# File lib/eim_xml/matcher.rb, line 17 def negative_failure_message "expected #{@target.inspect} must not have #{@expected}, but has." end
[Validate]
Generated with the Darkfish Rdoc Generator 2.