[#67346] Future of test suites for Ruby — Charles Oliver Nutter <headius@...>

I'll try to be brief so we can discuss all this. tl;dr: RubySpec is

19 messages 2015/01/05

[ruby-core:67781] Method scope change between 2.1 and 2.2

From: Anthony Crumley <anthony.crumley@...>
Date: 2015-01-24 03:45:34 UTC
List: ruby-core #67781
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 <top (required)>'
/Users/anthonycrumley/Projects/ruby/spec/rubyspec/language/def_spec.rb:113:in
`<top (required)>'

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

In This Thread

Prev Next