summaryrefslogtreecommitdiff
path: root/spec/ruby/core/bignum/bignum_spec.rb
blob: cf99bb4937f6dd5a330c2a47f08c4b4af5603b8b (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 "Bignum" do
  it "includes Comparable" do
    Bignum.include?(Comparable).should == true
  end

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

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