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

Version Path
rhodes-3.1.1 spec/framework_spec/app/spec/core/symbol/all_symbols_spec.rb
rhodes-3.1.1.beta spec/framework_spec/app/spec/core/symbol/all_symbols_spec.rb
rhodes-3.1.0 spec/framework_spec/app/spec/core/symbol/all_symbols_spec.rb
rhodes-3.1.0.beta.5 spec/framework_spec/app/spec/core/symbol/all_symbols_spec.rb
rhodes-3.1.0.beta.4 spec/framework_spec/app/spec/core/symbol/all_symbols_spec.rb
rhodes-3.1.0.beta.3 spec/framework_spec/app/spec/core/symbol/all_symbols_spec.rb
rhodes-3.1.0.beta.2 spec/framework_spec/app/spec/core/symbol/all_symbols_spec.rb
rhodes-3.1.0.beta.1 spec/framework_spec/app/spec/core/symbol/all_symbols_spec.rb
rhodes-3.0.2 spec/framework_spec/app/spec/core/symbol/all_symbols_spec.rb
rhodes-3.0.2.beta.1 spec/framework_spec/app/spec/core/symbol/all_symbols_spec.rb
rhodes-3.0.1 spec/framework_spec/app/spec/core/symbol/all_symbols_spec.rb
rhodes-3.0.1.beta.8 spec/framework_spec/app/spec/core/symbol/all_symbols_spec.rb
rhodes-3.0.1.beta.7 spec/framework_spec/app/spec/core/symbol/all_symbols_spec.rb
rhodes-3.0.1.beta.6 spec/framework_spec/app/spec/core/symbol/all_symbols_spec.rb
rhodes-3.0.1.beta.5 spec/framework_spec/app/spec/core/symbol/all_symbols_spec.rb
rhodes-3.0.1.beta.4 spec/framework_spec/app/spec/core/symbol/all_symbols_spec.rb
rhodes-3.0.1.beta.3 spec/framework_spec/app/spec/core/symbol/all_symbols_spec.rb
rhodes-3.0.1.beta.2 spec/framework_spec/app/spec/core/symbol/all_symbols_spec.rb
rhodes-3.0.0 spec/framework_spec/app/spec/core/symbol/all_symbols_spec.rb
rhodes-3.0.0.beta.7 spec/framework_spec/app/spec/core/symbol/all_symbols_spec.rb