aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/kernel/trust_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/kernel/trust_spec.rb')
-rw-r--r--spec/ruby/core/kernel/trust_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/kernel/trust_spec.rb b/spec/ruby/core/kernel/trust_spec.rb
index a9fda5c5c6..81ac9cc730 100644
--- a/spec/ruby/core/kernel/trust_spec.rb
+++ b/spec/ruby/core/kernel/trust_spec.rb
@@ -13,9 +13,9 @@ describe "Kernel#trust" do
o.untrusted?.should == false
end
- it "raises RuntimeError on an untrusted, frozen object" do
+ it "raises #{frozen_error_class} on an untrusted, frozen object" do
o = Object.new.untrust.freeze
- lambda { o.trust }.should raise_error(RuntimeError)
+ lambda { o.trust }.should raise_error(frozen_error_class)
end
it "does not raise an error on a trusted, frozen object" do