diff options
Diffstat (limited to 'spec/rubyspec/core/kernel/tainted_spec.rb')
-rw-r--r-- | spec/rubyspec/core/kernel/tainted_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/rubyspec/core/kernel/tainted_spec.rb b/spec/rubyspec/core/kernel/tainted_spec.rb new file mode 100644 index 0000000000..efb31be9d8 --- /dev/null +++ b/spec/rubyspec/core/kernel/tainted_spec.rb @@ -0,0 +1,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 |