Sha256: 0b12ec65a4fbd0222e9d69e200dd9abe730af824fbc49c9054d72e628b198b25
Contents?: true
Size: 833 Bytes
Versions: 13
Compression:
Stored size: 833 Bytes
Contents
ruby_version_is "1.9" do require File.expand_path('../../../shared/rational/Rational', __FILE__) describe "Rational()" do describe "passed two arguments" do it_behaves_like(:rational_rational_two, :Rational) end describe "passed Integer" do it_behaves_like(:rational_rational_int, :Rational) end describe "passed two integers" do it_behaves_like(:rational_rational_int_int, :Rational) end it "raises a TypeError if the arguments are not Integers" do lambda { Rational(nil) }.should raise_error(TypeError) lambda { Rational(nil, 1) }.should raise_error(TypeError) lambda { Rational(:foo, 1) }.should raise_error(TypeError) lambda { Rational(:foo) }.should raise_error(TypeError) end end end
Version data entries
13 entries across 13 versions & 1 rubygems