summaryrefslogtreecommitdiff
path: root/spec/ruby/core/module/const_set_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/module/const_set_spec.rb')
-rw-r--r--spec/ruby/core/module/const_set_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/module/const_set_spec.rb b/spec/ruby/core/module/const_set_spec.rb
index 6f4f6f980f..c6c80bf5df 100644
--- a/spec/ruby/core/module/const_set_spec.rb
+++ b/spec/ruby/core/module/const_set_spec.rb
@@ -78,8 +78,8 @@ describe "Module#const_set" do
@name = :Foo
end
- it "raises a RuntimeError before setting the name" do
- lambda { @frozen.const_set @name, nil }.should raise_error(RuntimeError)
+ it "raises a #{frozen_error_class} before setting the name" do
+ lambda { @frozen.const_set @name, nil }.should raise_error(frozen_error_class)
@frozen.should_not have_constant(@name)
end
end