Sha256: b6600ad3d72ff6c0df08e2d7d38702e6275855fedf8221e4b5a6ba1d0ded17c1
Contents?: true
Size: 523 Bytes
Versions: 1
Compression:
Stored size: 523 Bytes
Contents
require 'spec_helper' module WLang describe Scope, ".coerce" do it 'recognizes Binding' do Scope.coerce(binding).should be_a(Scope::BindingScope) end it 'recognizes Scopes' do Scope.coerce(Scope.root).should be_a(Scope::ProxyScope) end it 'falls back to ObjectScope on Hash' do Scope.coerce({}).should be_a(Scope::ObjectScope) end it 'falls back to ObjectScope' do Scope.coerce(12).should be_a(Scope::ObjectScope) end end # describe Scope end # module WLang
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wlang-2.0.0.beta | spec/unit/scope/test_coerce.rb |