Sha256: 30afa0d754c9dae9152cea02c1b28c540e77ee94403d125cc49af2f9085bdbc4

Contents?: true

Size: 518 Bytes

Versions: 1

Compression:

Stored size: 518 Bytes

Contents

require File.expand_path(File.dirname(__FILE__) + '/spec_helper')

describe Scope::GlobalScope do
  it 'is a Scope object' do
    Scope::GlobalScope.should be_a(Scope)
  end
  
  it 'has no parent' do
    Scope::GlobalScope.parent.should be_nil
  end
  
  it 'has a self pointer that is an Object' do
    # self_ptr is a Symbol
    Scope::GlobalScope.self_ptr.class_used.path.should == 'Object'
  end
  
  it 'has Object in its constants table' do
    Scope::GlobalScope.constants['Object'].should_not be_nil
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
wool-0.5.1 spec/analysis_specs/scope_spec.rb