1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Use FrozenError instead of frozen_error_class

This commit is contained in:
Nobuyoshi Nakada 2020-02-09 11:07:01 +09:00
parent 151f8be40d
commit 3a2073e61b
Notes: git 2020-04-01 15:36:48 +09:00
103 changed files with 367 additions and 385 deletions

View file

@ -32,13 +32,13 @@ describe "Array#initialize" do
end.should raise_error(ArgumentError)
end
it "raises a #{frozen_error_class} on frozen arrays" do
it "raises a FrozenError on frozen arrays" do
-> do
ArraySpecs.frozen_array.send :initialize
end.should raise_error(frozen_error_class)
end.should raise_error(FrozenError)
-> do
ArraySpecs.frozen_array.send :initialize, ArraySpecs.frozen_array
end.should raise_error(frozen_error_class)
end.should raise_error(FrozenError)
end
it "calls #to_ary to convert the value to an array, even if it's private" do