Skip to content

Commit 138b990

Browse files
committed
Check both ways for GC.stat specs
1 parent 4357bb0 commit 138b990

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spec/ruby/core/gc/stat_spec.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,16 @@
2525

2626
it "provides some number for count" do
2727
GC.stat(:count).should be_kind_of(Integer)
28+
GC.stat[:count].should be_kind_of(Integer)
2829
end
2930

3031
it "provides some number for heap_free_slots" do
3132
GC.stat(:heap_free_slots).should be_kind_of(Integer)
33+
GC.stat[:heap_free_slots].should be_kind_of(Integer)
3234
end
3335

3436
it "provides some number for total_allocated_objects" do
3537
GC.stat(:total_allocated_objects).should be_kind_of(Integer)
38+
GC.stat[:total_allocated_objects].should be_kind_of(Integer)
3639
end
3740
end

0 commit comments

Comments
 (0)