diff options
Diffstat (limited to 'spec/ruby/core/string/upcase_spec.rb')
-rw-r--r-- | spec/ruby/core/string/upcase_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/string/upcase_spec.rb b/spec/ruby/core/string/upcase_spec.rb index 4857079a84..c440b1b0aa 100644 --- a/spec/ruby/core/string/upcase_spec.rb +++ b/spec/ruby/core/string/upcase_spec.rb @@ -179,8 +179,8 @@ describe "String#upcase!" do a.should == "HELLO" end - it "raises a #{frozen_error_class} when self is frozen" do - -> { "HeLlo".freeze.upcase! }.should raise_error(frozen_error_class) - -> { "HELLO".freeze.upcase! }.should raise_error(frozen_error_class) + it "raises a FrozenError when self is frozen" do + -> { "HeLlo".freeze.upcase! }.should raise_error(FrozenError) + -> { "HELLO".freeze.upcase! }.should raise_error(FrozenError) end end |