summaryrefslogtreecommitdiff
path: root/spec/ruby/core/gc/total_time_spec.rb
blob: a8430fbe9ad76f4e5d50d7f0ebcb38391e79c48d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require_relative '../../spec_helper'

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