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
mocha-1.6.0 test/test_unit_result.rb
mocha-1.5.0 test/test_unit_result.rb
mocha-1.4.0 test/test_unit_result.rb
mocha-1.3.0 test/test_unit_result.rb
mocha-1.2.1 test/test_unit_result.rb
mocha-1.2.0 test/test_unit_result.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/1.9.1/gems/mocha-1.0.0/test/test_unit_result.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/mocha-1.0.0/test/test_unit_result.rb
apl-library-0.0.90 vendor/bundle/ruby/2.1.0/gems/apl-library-0.0.90/vendor/bundle/ruby/2.1.0/gems/mocha-1.0.0/test/test_unit_result.rb
apl-library-0.0.90 vendor/bundle/ruby/1.9.1/gems/mocha-1.0.0/test/test_unit_result.rb
mocha-1.1.0 test/test_unit_result.rb
mocha-1.0.0 test/test_unit_result.rb
mocha-1.0.0.alpha test/test_unit_result.rb
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/mocha-0.14.0/test/test_unit_result.rb
challah-1.0.0 vendor/bundle/gems/mocha-0.14.0/test/test_unit_result.rb
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/mocha-0.14.0/test/test_unit_result.rb
mocha-0.14.0 test/test_unit_result.rb
challah-1.0.0.beta3 vendor/bundle/gems/mocha-0.13.3/test/test_unit_result.rb
mocha-0.14.0.alpha test/test_unit_result.rb
challah-1.0.0.beta2 vendor/bundle/gems/mocha-0.13.3/test/test_unit_result.rb