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.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/ruby/core/rational/rational_spec.rb b/spec/ruby/core/rational/rational_spec.rb
index fc3108c11b..278c4116a4 100644
--- a/spec/ruby/core/rational/rational_spec.rb
+++ b/spec/ruby/core/rational/rational_spec.rb
@@ -1,7 +1,11 @@
-require File.expand_path('../../../spec_helper', __FILE__)
+require_relative '../../spec_helper'
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(NoMethodError)
+ end
end