diff options
author | Yusuke Endoh <mame@ruby-lang.org> | 2020-12-18 14:12:42 +0900 |
---|---|---|
committer | Yusuke Endoh <mame@ruby-lang.org> | 2020-12-18 16:08:55 +0900 |
commit | 982443e6e373f5a3ac22ee495909cb9adffcd08d (patch) | |
tree | 111f10669bb784da3fec5721749aef055c2cb119 /spec/ruby/core/module/attr_reader_spec.rb | |
parent | 41c208d4a463183fddca250026e5f1cd759d2604 (diff) |
Revert "Better cooperation between public/protected/private with attr* and alias_method"
This reverts commit 81739ad4fdfcc86a769056fec352f27c686fba1b.
Diffstat (limited to 'spec/ruby/core/module/attr_reader_spec.rb')
-rw-r--r-- | spec/ruby/core/module/attr_reader_spec.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/spec/ruby/core/module/attr_reader_spec.rb b/spec/ruby/core/module/attr_reader_spec.rb index e16b7ba2e3..238e3db9ea 100644 --- a/spec/ruby/core/module/attr_reader_spec.rb +++ b/spec/ruby/core/module/attr_reader_spec.rb @@ -61,20 +61,4 @@ describe "Module#attr_reader" do it "is a public method" do Module.should have_public_instance_method(:attr_reader, false) end - - ruby_version_is ""..."3.0" do - it "returns nil" do - Class.new do - (attr_reader :foo, 'bar').should == nil - end - end - end - - ruby_version_is "3.0" do - it "returns an array of defined methods names as symbols" do - Class.new do - (attr_reader :foo, 'bar').should == [:foo, :bar] - end - end - end end |