aboutsummaryrefslogtreecommitdiffstats
path: root/spec/rubyspec/core/integer/integer_spec.rb
blob: a6f406cba0042d76b20911be5c02346c8a3d8f5b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
require File.expand_path('../../../spec_helper', __FILE__)

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

describe "Integer#integer?" do
  it "returns true for Integers" do
    0.integer?.should == true
    -1.integer?.should == true
    bignum_value.integer?.should == true
  end
end