1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core/rational/rational_spec.rb
2021-09-07 19:01:07 +02:00

11 lines
252 B
Ruby

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_error(NoMethodError)
end
end