Updated RubySpec submodule to 9f66d0b1.
[rbx.git] / spec / core / lookuptable / keys_spec.rb
blob41c6914d1bde354a30448ef1f9c20cda547ed629
1 require File.dirname(__FILE__) + '/../../spec_helper'
3 describe "LookupTable#keys" do
4   before :each do
5     @lt = LookupTable.new(:a => 1, :b => 2, :c => 3)
6   end
8   it "returns an Array of the keys in the LookupTable" do
9     @lt.keys.sort { |a,b| a.to_s <=> b.to_s }.should == [:a, :b, :c]
10   end
11 end