rubinius/rubinius — pull request #1348 by leocassarani (2011-10-23 16:24:54+00:00)
Title: Fix Kernel#Complex and Numeric#real? under 1.9

This was originally submitted as [pull request #1337](https://github.com/rubinius/rubinius/pull/1337), which was merged and then reverted. This new request adds a commit that fixes the failing specs that were caused by merging the original pull request.

While fixing the failing specs, I found that `Bignum#real?` hadn't been implemented for 1.9. Looking at [MRI](https://github.com/ruby/ruby/blob/trunk/numeric.c#L462), it turns out `real?` is implemented directly on `Numeric`, rather than the individual classes than inherit from it, such as `Float` and `Fixnum`, which was the status quo prior to my changes. I then added a test for `Numeric#real?` and moved its implementation from `float19.rb` and `fixnum19.rb` into `numeric19.rb`.