diff options
Diffstat (limited to 'spec/ruby/core/module/append_features_spec.rb')
| -rw-r--r-- | spec/ruby/core/module/append_features_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/module/append_features_spec.rb b/spec/ruby/core/module/append_features_spec.rb index 8fb3febc04..d960798eef 100644 --- a/spec/ruby/core/module/append_features_spec.rb +++ b/spec/ruby/core/module/append_features_spec.rb @@ -67,8 +67,8 @@ describe "Module#append_features" do @other = Module.new.freeze end - it "raises a #{frozen_error_class} before appending self" do - -> { @receiver.send(:append_features, @other) }.should raise_error(frozen_error_class) + it "raises a FrozenError before appending self" do + -> { @receiver.send(:append_features, @other) }.should raise_error(FrozenError) @other.ancestors.should_not include(@receiver) end end |
