diff options
Diffstat (limited to 'spec/ruby/core/hash/to_a_spec.rb')
-rw-r--r-- | spec/ruby/core/hash/to_a_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/ruby/core/hash/to_a_spec.rb b/spec/ruby/core/hash/to_a_spec.rb index 46f871389a..6f6f74f73b 100644 --- a/spec/ruby/core/hash/to_a_spec.rb +++ b/spec/ruby/core/hash/to_a_spec.rb @@ -36,4 +36,14 @@ describe "Hash#to_a" do {}.untrust.to_a.untrusted?.should be_true end end + + ruby_version_is '2.7'...'3.0' do + it "returns a not tainted array if self is tainted" do + {}.taint.to_a.tainted?.should be_false + end + + it "returns a trusted array if self is untrusted" do + {}.untrust.to_a.untrusted?.should be_false + end + end end |