Lines Matching refs:diff
86 # Returns the diff command to use in #diff. Tries to intelligently
87 # figure out what diff to use.
89 def self.diff
90 @diff = if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/ then
91 "diff.exe -u"
95 elsif system("diff", __FILE__, __FILE__)
96 "diff -u"
100 end unless defined? @diff
102 @diff
106 # Set the diff command to use in #diff.
108 def self.diff= o
109 @diff = o
113 # Returns a diff between +exp+ and +act+. If there is no known
114 # diff command or if it doesn't make sense to diff the output
118 def diff exp, act
126 MiniTest::Assertions.diff &&
144 result = `#{MiniTest::Assertions.diff} #{a.path} #{b.path}`
175 # This returns a diff-able human-readable version of +obj+. This
236 # See also: MiniTest::Assertions.diff
239 msg = message(msg, "") { diff exp, act }
1376 # Make diffs for this TestCase use #pretty_inspect so that diff