Sha256: 3b5bd4ab9944079e783dc0391e42b31bbac8d4d3d1fb7467a45bebfe2c2be1f4
Contents?: true
Size: 385 Bytes
Versions: 2
Compression:
Stored size: 385 Bytes
Contents
require 'spec_helper' module Alf module Support describe TupleScope, "[]" do context 'with a simple TupleScope' do let(:scope){ TupleScope.new(:a => 1, :b => 2) } it "delegates to the tuple" do scope[:a].should == 1 end it "return nil on unexisting" do scope[:c].should be_nil end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alf-core-0.15.0 | spec/unit/alf-support/tuple_scope/test_hash_get.rb |
alf-core-0.14.0 | spec/unit/alf-support/tuple_scope/test_hash_get.rb |