summaryrefslogtreecommitdiff
path: root/test/coverage/test_coverage.rb
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-26 00:48:56 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-11-26 00:48:56 +0000
commita4ac5065519b023e1b951b8891aa71836b88411d (patch)
treee886245e66ba5a4fb005d08f3b8bafa2ecf46922 /test/coverage/test_coverage.rb
parent717e60c79c7ea06978356f320556e3ae66cd4cf9 (diff)
* test/coverage/test_coverage.rb: Added test-case for Coverage.peek_result
without Coverage.start. [Misc #11726][ruby-core:71622] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/coverage/test_coverage.rb')
-rw-r--r--test/coverage/test_coverage.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/coverage/test_coverage.rb b/test/coverage/test_coverage.rb
index bade668..549793b 100644
--- a/test/coverage/test_coverage.rb
+++ b/test/coverage/test_coverage.rb
@@ -6,6 +6,11 @@ class TestCoverage < Test::Unit::TestCase
def test_result_without_start
assert_raise(RuntimeError) {Coverage.result}
end
+
+ def test_peek_result_without_start
+ assert_raise(RuntimeError) {Coverage.peek_result}
+ end
+
def test_result_with_nothing
Coverage.start
result = Coverage.result