[#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:67282] [ruby-trunk - Bug #10687] [Open] ArgumentError in certain cases of instance_exec (new bug in 2.2)

From: micaeked@...
Date: 2015-01-01 06:42:04 UTC
List: ruby-core #67282
Issue #10687 has been reported by mica eked.

----------------------------------------
Bug #10687: ArgumentError in certain cases of instance_exec (new bug in 2.2)
https://bugs.ruby-lang.org/issues/10687

* Author: mica eked
* Status: Open
* Priority: Normal
* Assignee: 
* Category: 
* Target version: 
* ruby -v: ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
* Backport: 
----------------------------------------
a.rb:

~~~

foo = ->(a = nil) do
  p(a)
end
instance_exec(["a", "b", "c", "d"], &foo)
~~~


~~~
#=> rvm use 2.1 && ruby -v && ruby a.rb 
Using /home/micaeked/.rvm/gems/ruby-2.1.5
ruby 2.1.5p273 (2014-11-13 revision 48405) [x86_64-linux]
["a", "b", "c", "d"]
#=> rvm use 2.2 && ruby -v && ruby a.rb 
Using /home/micaeked/.rvm/gems/ruby-2.2.0
ruby 2.2.0p0 (2014-12-25 revision 49005) [x86_64-linux]
a.rb:1:in `block in <main>': wrong number of arguments (4 for 0..1) (ArgumentError)
	from a.rb:5:in `instance_exec'
	from a.rb:5:in `<main>'
~~~




-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next