summaryrefslogtreecommitdiff
path: root/spec/ruby/core/integer/integer_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/integer/integer_spec.rb')
-rw-r--r--spec/ruby/core/integer/integer_spec.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/spec/ruby/core/integer/integer_spec.rb b/spec/ruby/core/integer/integer_spec.rb
new file mode 100644
index 0000000000..a6f406cba0
--- /dev/null
+++ b/spec/ruby/core/integer/integer_spec.rb
@@ -0,0 +1,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