Sha256: 6a57f15c2251ef5b819c86ee17eaeb7af31bd38c57501f1b986a82179b3c5607
Contents?: true
Size: 302 Bytes
Versions: 52
Compression:
Stored size: 302 Bytes
Contents
require File.expand_path('../../../spec_helper', __FILE__) ruby_version_is "1.9" do describe "NilClass#rationalize" do it "returns 0/1" do nil.rationalize.should == Rational(0, 1) end it "ignores arguments" do nil.rationalize(0.1).should == Rational(0, 1) end end end
Version data entries
52 entries across 52 versions & 2 rubygems