Sha256: ee633c2460d2407bb6a3874517efba06de16dbd7dd9ed10c16db1b4d70f9e5bf
Contents?: true
Size: 597 Bytes
Versions: 83
Compression:
Stored size: 597 Bytes
Contents
require File.dirname(File.join(__rhoGetCurrentDir(), __FILE__)) + '/../../spec_helper' describe "Symbol.all_symbols" do it "returns an array containing all the Symbols in the symbol table" do Symbol.all_symbols.is_a?(Array).should == true Symbol.all_symbols.all? { |s| s.is_a?(Symbol) ? true : (p s; false) }.should == true end # XXX eval not supported # it "increases size of the return array when new symbol comes" do # num_symbols = Symbol.all_symbols.size # eval ":aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" # Symbol.all_symbols.size.should == num_symbols + 1 # end end
Version data entries
83 entries across 83 versions & 1 rubygems