From: Anthony Crumley Date: 2015-01-24T03:45:34+00:00 Subject: [ruby-core:67781] Method scope change between 2.1 and 2.2 --001a113b36e8d2e132050d5dbc79 Content-Type: text/plain; charset=UTF-8 This RubySpec specification passes in Ruby versions 2.0 and 2.1 but fails in 2.2 and 2.3. Is this change a regression or was it intentional? anthonycrumley$ ../mspec/bin/mspec -e 'An instance method with a default argument calls a method with the same name as the local' language/def_spec.rb ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14] F 1) An instance method with a default argument calls a method with the same name as the local FAILED Expected nil to equal 1 /Users/anthonycrumley/Projects/ruby/spec/rubyspec/language/def_spec.rb:175:in `block (2 levels) in ' /Users/anthonycrumley/Projects/ruby/spec/rubyspec/language/def_spec.rb:113:in `' Finished in 0.005185 seconds 1 file, 1 example, 1 expectation, 1 failure, 0 errors https://github.com/anthonycrumley/rubyspec/blob/master/language/def_spec.rb#L168-L178 Thanks. Anthony --001a113b36e8d2e132050d5dbc79 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable This RubySpec specification passes in Ruby versions 2.0 and 2.1 but fails i= n 2.2 and 2.3.=C2=A0 Is this change a regression or was it intentional?
anthonycrumley$ ../mspec/bin/mspec -e 'An instance= method with a default argument calls a method with the same name as the lo= cal' language/def_spec.rb
ruby 2.2.0p0 (2014-12-25 revision 4= 9005) [x86_64-darwin14]
F

1)
An instance method with a default argument calls a method with the same = name as the local FAILED
Expected nil
=C2=A0to equal 1<= /div>

/Users/anthonycrumley/Projects/ruby/spec/rubyspec/= language/def_spec.rb:175:in `block (2 levels) in <top (required)>'= ;
/Users/anthonycrumley/Projects/ruby/spec/rubyspec/language/def_= spec.rb:113:in `<top (required)>'

Finish= ed in 0.005185 seconds

1 file, 1 example, 1 expect= ation, 1 failure, 0 errors

https://github.com/anthonycrumley/rubyspec/blob/master/language/def_s= pec.rb#L168-L178

Thanks.

<= div>Anthony --001a113b36e8d2e132050d5dbc79--