diff options
Diffstat (limited to 'spec/ruby/core/kernel/untaint_spec.rb')
| -rw-r--r-- | spec/ruby/core/kernel/untaint_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/kernel/untaint_spec.rb b/spec/ruby/core/kernel/untaint_spec.rb index 58485fcc58..df9e3144a0 100644 --- a/spec/ruby/core/kernel/untaint_spec.rb +++ b/spec/ruby/core/kernel/untaint_spec.rb @@ -14,9 +14,9 @@ describe "Kernel#untaint" do o.tainted?.should == false end - it "raises #{frozen_error_class} on a tainted, frozen object" do + it "raises FrozenError on a tainted, frozen object" do o = Object.new.taint.freeze - -> { o.untaint }.should raise_error(frozen_error_class) + -> { o.untaint }.should raise_error(FrozenError) end it "does not raise an error on an untainted, frozen object" do |
