Sha256: 6946091e96a922b1c78441dfd9350cc93c16ab1c4919ef6d0a98e3b7be036fca

Contents?: true

Size: 491 Bytes

Versions: 3

Compression:

Stored size: 491 Bytes

Contents

require 'spec_helper'
module WLang
  class Scope
    describe RootScope do

      let(:scope){ RootScope.new }

      it 'throws on fetch' do
        lambda{ scope.fetch(:who) }.should throw_symbol(:fail)
      end

      it 'throws on fetch even on `self`' do
        lambda{ scope.fetch(:self) }.should throw_symbol(:fail)
      end

      it 'raises on pop' do
        lambda{ scope.pop }.should raise_error
      end

    end # describe ProxyScope
  end # class Scope
end # module WLang

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
wlang-2.0.1 spec/unit/scope/test_root_scope.rb
wlang-2.0.0 spec/unit/scope/test_root_scope.rb
wlang-2.0.0.beta spec/unit/scope/test_root_scope.rb