lib/assert/view/base.rb in assert-view-0.4.1 vs lib/assert/view/base.rb in assert-view-0.4.2
- old
+ new
@@ -147,10 +147,10 @@
def detailed_results(test=nil)
tests = test.nil? ? self.suite.ordered_tests.reverse : [test]
result_index = 0
tests.collect do |test|
result_index += 1
- test.results.
+ test.results.reverse.
select { |result| self.show_result_details?(result) }.
each {|r| yield r, result_index, test, test.output if block_given?}
end.compact.flatten
end