diff --git a/core/kernel/taint_spec.rb b/core/kernel/taint_spec.rb index 9a58bb5f0..6fbe9f0bf 100644 --- a/core/kernel/taint_spec.rb +++ b/core/kernel/taint_spec.rb @@ -2,7 +2,7 @@ require_relative 'fixtures/classes' describe "Kernel#taint" do - ruby_version_is ""..."3.0" do + ruby_version_is ""..."3.1" do it "is a no-op" do o = Object.new o.taint @@ -16,4 +16,10 @@ }.should complain(/Object#taint is deprecated and will be removed in Ruby 3.2/, verbose: true) end end + + ruby_version_is "3.2" do + it "has been removed" do + Object.new.should_not.respond_to?(:taint) + end + end end diff --git a/core/kernel/tainted_spec.rb b/core/kernel/tainted_spec.rb index 7511c730c..3781d6e06 100644 --- a/core/kernel/tainted_spec.rb +++ b/core/kernel/tainted_spec.rb @@ -2,7 +2,7 @@ require_relative 'fixtures/classes' describe "Kernel#tainted?" do - ruby_version_is ""..."3.0" do + ruby_version_is ""..."3.1" do it "is a no-op" do o = mock('o') p = mock('p') @@ -18,4 +18,10 @@ }.should complain(/Object#tainted\? is deprecated and will be removed in Ruby 3.2/, verbose: true) end end + + ruby_version_is "3.2" do + it "has been removed" do + Object.new.should_not.respond_to?(:tainted?) + end + end end diff --git a/core/kernel/untaint_spec.rb b/core/kernel/untaint_spec.rb index 42fe8a423..048b42cc1 100644 --- a/core/kernel/untaint_spec.rb +++ b/core/kernel/untaint_spec.rb @@ -2,7 +2,7 @@ require_relative 'fixtures/classes' describe "Kernel#untaint" do - ruby_version_is ""..."3.0" do + ruby_version_is ""..."3.1" do it "is a no-op" do o = Object.new.taint o.should_not.tainted? @@ -17,4 +17,10 @@ }.should complain(/Object#untaint is deprecated and will be removed in Ruby 3.2/, verbose: true) end end + + ruby_version_is "3.2" do + it "has been removed" do + Object.new.should_not.respond_to?(:untaint) + end + end end