diff options
Diffstat (limited to 'spec/rubyspec/core/bignum/bignum_spec.rb')
-rw-r--r-- | spec/rubyspec/core/bignum/bignum_spec.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/rubyspec/core/bignum/bignum_spec.rb b/spec/rubyspec/core/bignum/bignum_spec.rb index b723718f69..cf99bb4937 100644 --- a/spec/rubyspec/core/bignum/bignum_spec.rb +++ b/spec/rubyspec/core/bignum/bignum_spec.rb @@ -4,4 +4,16 @@ 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 |