summaryrefslogtreecommitdiff
path: root/test/coverage
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
parent717e60c79c7ea06978356f320556e3ae66cd4cf9 (diff)
downloadruby-a4ac5065519b023e1b951b8891aa71836b88411d.tar.gz
* 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')
-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 bade668fdb..549793b5e1 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