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