mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
11 lines
252 B
Ruby
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
|