mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
717e60c79c
commit
a4ac506551
2 changed files with 10 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue