Updated RubySpec submodule to 9f66d0b1.
[rbx.git] / spec / core / lookuptable / allocate_spec.rb
blobd28a0010492feccea686d2bcb94306b9f60b412f
1 require File.dirname(__FILE__) + '/../../spec_helper'
3 describe "LookupTable.allocate" do
4   it "creates an instance of LookupTable" do
5     LookupTable.allocate.should be_kind_of(LookupTable)
6   end
8   it "creates a fully-formed LookupTable instance" do
9     lt = LookupTable.allocate
10     lt.should be_kind_of(LookupTable)
11     lt.size.should == 0
12     lt[:a] = 1
13     lt[:a].should == 1
14     lt.size.should == 1
15   end
16 end