summaryrefslogtreecommitdiff
path: root/spec/ruby/core/kernel/tainted_spec.rb
blob: dbd6bc939ac17e14fc1a10169638a309b5883261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
require_relative '../../spec_helper'
require_relative 'fixtures/classes'

describe "Kernel#tainted?" do
  ruby_version_is ''...'2.7' do
    it "returns true if Object is tainted" do
      o = mock('o')
      p = mock('p')
      p.taint
      o.should_not.tainted?
      p.should.tainted?
    end
  end
end