summaryrefslogtreecommitdiff
path: root/spec/ruby/core/array/shared/replace.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/array/shared/replace.rb')
-rw-r--r--spec/ruby/core/array/shared/replace.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/array/shared/replace.rb b/spec/ruby/core/array/shared/replace.rb
index b3474fad09..9a6e60c1b0 100644
--- a/spec/ruby/core/array/shared/replace.rb
+++ b/spec/ruby/core/array/shared/replace.rb
@@ -52,9 +52,9 @@ describe :array_replace, shared: true do
[].send(@method, ArraySpecs::ToAryArray[5, 6, 7]).should == [5, 6, 7]
end
- it "raises a #{frozen_error_class} on a frozen array" do
+ it "raises a FrozenError on a frozen array" do
-> {
ArraySpecs.frozen_array.send(@method, ArraySpecs.frozen_array)
- }.should raise_error(frozen_error_class)
+ }.should raise_error(FrozenError)
end
end