class Assert::DefaultView::ResultData
Public Class Methods
for_result(r)
click to toggle source
# File lib/assert/default_view.rb, line 187 def self.for_result(r) new(r.type, r.to_s, r.output, r.test_id, sort_by(r)) end
sort_by(r)
click to toggle source
# File lib/assert/default_view.rb, line 191 def self.sort_by(r) [r.test_file_name, r.test_line_num, r.file_name, r.line_num] end
Public Instance Methods
<=>(other)
click to toggle source
Calls superclass method
# File lib/assert/default_view.rb, line 195 def <=>(other) # show in reverse definition order if other.is_a?(ResultData) other.sort_by <=> sort_by else super end end