Sha256: ca9ce8ddbef84c96244480a08152ab758b766e45888dc9c456913d7fd00882dd

Contents?: true

Size: 504 Bytes

Versions: 61

Compression:

Stored size: 504 Bytes

Contents

require 'test/unit/testresult'

class TestUnitResult
  def self.build_test_result
    test_result = Test::Unit::TestResult.new
    class << test_result
      attr_reader :failures, :errors
      def failure_messages
        failures.map { |failure| failure.message }
      end
      def failure_message_lines
        failure_messages.map { |message| message.split("\n") }.flatten
      end
      def error_messages
        errors.map { |error| error.message }
      end
    end
    test_result
  end
end

Version data entries

61 entries across 50 versions & 5 rubygems

Version Path
challah-1.0.0.beta vendor/bundle/gems/mocha-0.13.3/test/test_unit_result.rb
mocha-0.13.3 test/test_unit_result.rb
mocha-0.12.10 test/test_unit_result.rb
mocha-0.12.9 test/test_unit_result.rb
mocha-0.13.2 test/test_unit_result.rb
mocha-0.12.8 test/test_unit_result.rb
mocha-0.13.1 test/test_unit_result.rb
challah-rolls-0.2.0 vendor/bundle/gems/mocha-0.12.3/test/test_unit_result.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.0.pre/vendor/bundle/gems/mocha-0.12.2/test/test_unit_result.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/mocha-0.12.3/test/test_unit_result.rb
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/mocha-0.13.0/test/test_unit_result.rb
challah-rolls-0.2.0 vendor/bundle/gems/mocha-0.12.2/test/test_unit_result.rb
challah-rolls-0.2.0 vendor/bundle/gems/mocha-0.13.0/test/test_unit_result.rb
challah-0.8.3 vendor/bundle/gems/mocha-0.12.3/test/test_unit_result.rb
challah-0.8.3 vendor/bundle/gems/mocha-0.13.0/test/test_unit_result.rb
mocha-0.13.0 test/test_unit_result.rb
mocha-0.12.7 test/test_unit_result.rb
mocha-0.12.6 test/test_unit_result.rb
mocha-0.12.5 test/test_unit_result.rb
challah-0.8.1 vendor/bundle/gems/mocha-0.12.3/test/test_unit_result.rb