summaryrefslogtreecommitdiff
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
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
-rw-r--r--ChangeLog5
-rw-r--r--test/coverage/test_coverage.rb5
2 files changed, 10 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 225aa36..39332bd 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Nov 26 09:46:36 2015 yui-knk <spiketeika@gmail.com>
+
+ * test/coverage/test_coverage.rb: Added test-case for Coverage.peek_result
+ without Coverage.start. [Misc #11726][ruby-core:71622]
+
Thu Nov 26 07:22:55 2015 Eric Wong <e@80x24.org>
* test/openssl/test_ssl.rb (test_copy_stream): new test
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