diff options
author | Benoit Daloze <eregontp@gmail.com> | 2021-08-13 18:09:14 +0200 |
---|---|---|
committer | Benoit Daloze <eregontp@gmail.com> | 2021-08-13 18:09:14 +0200 |
commit | 73085c8d8ee5456b6c157042b78d812f3d1ab054 (patch) | |
tree | 052a33ae7e33c9264fd3f748fc65db72e00fbcad /spec/ruby/core | |
parent | ac4d53bd461ff386cd45fdd484ffb6b628a251ad (diff) | |
download | ruby-73085c8d8ee5456b6c157042b78d812f3d1ab054.tar.gz |
Update to ruby/spec@330c641
Diffstat (limited to 'spec/ruby/core')
-rw-r--r-- | spec/ruby/core/gc/stat_spec.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/ruby/core/gc/stat_spec.rb b/spec/ruby/core/gc/stat_spec.rb index 34656c401c..eb71fd9691 100644 --- a/spec/ruby/core/gc/stat_spec.rb +++ b/spec/ruby/core/gc/stat_spec.rb @@ -4,7 +4,11 @@ describe "GC.stat" do it "returns hash of values" do stat = GC.stat stat.should be_kind_of(Hash) - stat.keys.should include(:count) + stat.keys.should.include?(:count) + end + + it "the values are all Integer since rb_gc_stat() returns size_t" do + GC.stat.values.each { |value| value.should be_kind_of(Integer) } end it "can return a single value" do |