class TestUnitReporterTest
Private Instance Methods
assert_rerun_snippet_count(snippet_count)
click to toggle source
# File railties/test/test_unit/reporter_test.rb, line 161 def assert_rerun_snippet_count(snippet_count) assert_equal snippet_count, @output.string.scan(%r{^bin/quails test }).size end
errored_test()
click to toggle source
# File railties/test/test_unit/reporter_test.rb, line 175 def errored_test error = ArgumentError.new("wups") error.set_backtrace([ "some_test.rb:4" ]) et = ExampleTest.new(:woot) et.failures << Minitest::UnexpectedError.new(error) et end
failed_test()
click to toggle source
# File railties/test/test_unit/reporter_test.rb, line 165 def failed_test ft = ExampleTest.new(:woot) ft.failures << begin raise Minitest::Assertion, "boo" rescue Minitest::Assertion => e e end ft end
passing_test()
click to toggle source
# File railties/test/test_unit/reporter_test.rb, line 184 def passing_test ExampleTest.new(:woot) end
skipped_test()
click to toggle source
# File railties/test/test_unit/reporter_test.rb, line 188 def skipped_test st = ExampleTest.new(:woot) st.failures << begin raise Minitest::Skip, "skipchurches, misstemples" rescue Minitest::Assertion => e e end st.time = 10 st end