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

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