diff options
Diffstat (limited to 'spec/ruby/core/hash/clear_spec.rb')
-rw-r--r-- | spec/ruby/core/hash/clear_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/ruby/core/hash/clear_spec.rb b/spec/ruby/core/hash/clear_spec.rb index e7816acbbc..cf05e36ac9 100644 --- a/spec/ruby/core/hash/clear_spec.rb +++ b/spec/ruby/core/hash/clear_spec.rb @@ -25,8 +25,8 @@ describe "Hash#clear" do h.default_proc.should_not == nil end - it "raises a #{frozen_error_class} if called on a frozen instance" do - -> { HashSpecs.frozen_hash.clear }.should raise_error(frozen_error_class) - -> { HashSpecs.empty_frozen_hash.clear }.should raise_error(frozen_error_class) + it "raises a FrozenError if called on a frozen instance" do + -> { HashSpecs.frozen_hash.clear }.should raise_error(FrozenError) + -> { HashSpecs.empty_frozen_hash.clear }.should raise_error(FrozenError) end end |