blob: 9b4f16e6033fac0c14f630562f32b3c9aa356f78 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
require_relative '../../spec_helper'
ruby_version_is "3.1" do
describe "GC.total_time" do
it "returns an Integer" do
GC.total_time.should be_kind_of(Integer)
end
it "increases as collections are run" do
time_before = GC.total_time
GC.start
GC.total_time.should > time_before
end
end
end
|