Project

General

Profile

Misc #11726 ยป 0001-Add-a-test-case-for-Coverage.peek_result.patch

yui-knk (Kaneko Yuichiro), 11/21/2015 05:06 AM

View differences:

test/coverage/test_coverage.rb
6 6
  def test_result_without_start
7 7
    assert_raise(RuntimeError) {Coverage.result}
8 8
  end
9

  
10
  def test_peek_result_without_start
11
    assert_raise(RuntimeError) {Coverage.peek_result}
12
  end
13

  
9 14
  def test_result_with_nothing
10 15
    Coverage.start
11 16
    result = Coverage.result
12
-