summaryrefslogtreecommitdiff
path: root/test/coverage
diff options
context:
space:
mode:
Diffstat (limited to 'test/coverage')
-rw-r--r--test/coverage/test_coverage.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/coverage/test_coverage.rb b/test/coverage/test_coverage.rb
index b039213..58b9428 100644
--- a/test/coverage/test_coverage.rb
+++ b/test/coverage/test_coverage.rb
@@ -23,6 +23,16 @@ class TestCoverage < Test::Unit::TestCase
end
end
+ def test_coverage_running?
+ refute Coverage.running?
+ Coverage.start
+ assert Coverage.running?
+ Coverage.peek_result
+ assert Coverage.running?
+ Coverage.result
+ refute Coverage.running?
+ end
+
def test_coverage_snapshot
loaded_features = $".dup