diff options
Diffstat (limited to 'spec/ruby/core/array/clear_spec.rb')
-rw-r--r-- | spec/ruby/core/array/clear_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/array/clear_spec.rb b/spec/ruby/core/array/clear_spec.rb index d399d5a373..5c7a934d75 100644 --- a/spec/ruby/core/array/clear_spec.rb +++ b/spec/ruby/core/array/clear_spec.rb @@ -44,9 +44,9 @@ describe "Array#clear" do end end - it "raises a #{frozen_error_class} on a frozen array" do + it "raises a FrozenError on a frozen array" do a = [1] a.freeze - -> { a.clear }.should raise_error(frozen_error_class) + -> { a.clear }.should raise_error(FrozenError) end end |