blob: efb31be9d8e891189a1852abca6583df5990f0da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
require File.expand_path('../../../spec_helper', __FILE__)
require File.expand_path('../fixtures/classes', __FILE__)
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
|