rubinius/rubinius — pull request #2587 by razielgn (2013-09-03 22:56:41+00:00)
Title: Fix Module#define_method with UnboundMethod body.

Before: a method which couldn't be bound raised TypeError, only when called.
Now: a method which can't be bound raises TypeError on _definition_.

Rails 4 was exploiting this trick (https://github.com/rails/rails/blob/master/activesupport/lib/active_support/core_ext/module/method_transplanting.rb) to detect if methods are transplantable between modules, as 2.0 now should allow.
But on RBX 1.9, since TypeError would've been raised only on call, Rails 4 thought it supported method transplanting, causing massive failures across the test suite.

Bonus: there was an example tagged as a ruby bug (http://bugs.ruby-lang.org/issues/show/2117): it has since been fixed and so I've turned it into an actual spec and ensured it'd pass along with the new changes.