aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/core/float/float_spec.rb
blob: f2931d184c26d47885f39aa79ba87dbed6f2f1d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
require File.expand_path('../../../spec_helper', __FILE__)

describe "Float" do
  it "includes Comparable" do
    Float.include?(Comparable).should == true
  end

  it ".allocate raises a TypeError" do
    lambda do
      Float.allocate
    end.should raise_error(TypeError)
  end

  it ".new is undefined" do
    lambda do
      Float.new
    end.should raise_error(NoMethodError)
  end
end