Sha256: ad639f1a43bbba5ae73770ec712f9499f5112a551c70340eae7c25314aecf10f
Contents?: true
Size: 761 Bytes
Versions: 6
Compression:
Stored size: 761 Bytes
Contents
require 'minitest/autorun' class Example < Minitest::Test require_relative 'data' def test_assert_equal begin assert_equal(expected, actual) rescue Minitest::Assertion => x File.open('default.txt', 'w') do |file| file.write(x.message) end end begin Minitest::Test.make_my_diffs_pretty! assert_equal(expected, actual) rescue Minitest::Assertion => x File.open('better.txt', 'w') do |file| file.write(x.message) end end begin require 'minitest_lucid' assert_equal(expected, actual) rescue Minitest::Assertion => x File.open('lucid.txt', 'w') do |file| file.write(x.message) end end end end
Version data entries
6 entries across 2 versions & 1 rubygems