5 def initialize(sym, *args)
13 return target.send(predicate, *@args)
15 # This clause should be empty, but rcov will not report it as covered
16 # unless something (anything) is executed within the clause
17 rcov_error_report = "http://eigenclass.org/hiki.rb?rcov-0.8.0"
23 raise @error if @error
24 "expected ##{predicate}(#{@args[0].inspect}) to return true, got false"
27 def negative_failure_message
28 raise @error if @error
29 "expected ##{predicate}(#{@args[0].inspect}) to return false, got true"
33 "have key #{@args[0].inspect}"
38 "#{@sym.to_s.sub("have_","has_")}?".to_sym