summaryrefslogtreecommitdiff
path: root/spec/ruby/core/rational/rational_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/rational/rational_spec.rb')
-rw-r--r--spec/ruby/core/rational/rational_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/ruby/core/rational/rational_spec.rb b/spec/ruby/core/rational/rational_spec.rb
index 704e49354e..482deab38d 100644
--- a/spec/ruby/core/rational/rational_spec.rb
+++ b/spec/ruby/core/rational/rational_spec.rb
@@ -4,4 +4,8 @@ describe "Rational" do
it "includes Comparable" do
Rational.include?(Comparable).should == true
end
+
+ it "does not respond to new" do
+ -> { Rational.new(1) }.should raise_error(NoMethodError)
+ end
end