diff options
Diffstat (limited to 'spec/ruby/core/rational/rational_spec.rb')
| -rw-r--r-- | spec/ruby/core/rational/rational_spec.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/spec/ruby/core/rational/rational_spec.rb b/spec/ruby/core/rational/rational_spec.rb new file mode 100644 index 0000000000..278c4116a4 --- /dev/null +++ b/spec/ruby/core/rational/rational_spec.rb @@ -0,0 +1,11 @@ +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 |
