diff options
Diffstat (limited to 'spec/ruby/core/string/shared/succ.rb')
| -rw-r--r-- | spec/ruby/core/string/shared/succ.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/string/shared/succ.rb b/spec/ruby/core/string/shared/succ.rb index 80e4659102..346ccee409 100644 --- a/spec/ruby/core/string/shared/succ.rb +++ b/spec/ruby/core/string/shared/succ.rb @@ -83,8 +83,8 @@ describe :string_succ_bang, shared: true do end end - it "raises a #{frozen_error_class} if self is frozen" do - -> { "".freeze.send(@method) }.should raise_error(frozen_error_class) - -> { "abcd".freeze.send(@method) }.should raise_error(frozen_error_class) + it "raises a FrozenError if self is frozen" do + -> { "".freeze.send(@method) }.should raise_error(FrozenError) + -> { "abcd".freeze.send(@method) }.should raise_error(FrozenError) end end |
