Skip to content

Commit 54711f3

Browse files
committed
Add spec and untag test for Rational.new.
1 parent e0827e2 commit 54711f3

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

spec/ruby/core/rational/rational_spec.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@
44
it "includes Comparable" do
55
Rational.include?(Comparable).should == true
66
end
7+
8+
it "does not respond to new" do
9+
-> { Rational.new(1) }.should raise_error(NoMethodError)
10+
end
711
end

test/mri/excludes/Rational_Test.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
exclude :test_marshal_compatibility, "needs investigation"
66
exclude :test_parse, "needs investigation"
77
exclude :test_power_of_0, "needs investigation"
8-
exclude :test_ruby19, "needs investigation"
98
exclude :test_supp, "needs investigation"
109
exclude :test_to_f, "needs investigation"
1110
exclude :test_Rational_without_exception, "needs investigation"

0 commit comments

Comments
 (0)