diff options
Diffstat (limited to 'spec/ruby/core/gc/total_time_spec.rb')
| -rw-r--r-- | spec/ruby/core/gc/total_time_spec.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/ruby/core/gc/total_time_spec.rb b/spec/ruby/core/gc/total_time_spec.rb new file mode 100644 index 0000000000..f10e0ad742 --- /dev/null +++ b/spec/ruby/core/gc/total_time_spec.rb @@ -0,0 +1,13 @@ +require_relative '../../spec_helper' + +describe "GC.total_time" do + it "returns an Integer" do + GC.total_time.should.is_a?(Integer) + end + + it "increases as collections are run" do + time_before = GC.total_time + GC.start + GC.total_time.should >= time_before + end +end |
