From: David Calavera Date: 2009-08-28T15:21:31+09:00 Subject: [ruby-core:25172] [Bug #1648] Rational#div Raises NoMethodError for Invalid Argument Issue #1648 has been updated by David Calavera. File RUBY-1648_v2.patch added The code of the spec is in spec/ruby/shared/rational/div.rb, but that's what fails: ruby_bug "#1648", "1.8.7" do it "raises a TypeError if passed a non-numeric argument" do lambda { Rational(3, 4).div([]) }.should raise_error(TypeError) end end I updated the patch to use respond_to?. ---------------------------------------- http://redmine.ruby-lang.org/issues/show/1648 ---------------------------------------- http://redmine.ruby-lang.org