Sha256: 072bcccff5f2360550a817185a69c7bdd0518ba41ff26d91e517707b9cf73cd4
Contents?: true
Size: 465 Bytes
Versions: 1
Compression:
Stored size: 465 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Tuple, '#[]' do subject { object[attribute] } let(:header) { Relation::Header.new([ [ :id, Integer ] ]) } let(:object) { described_class.new(header, [ 1 ]) } context 'with a known attribute' do let(:attribute) { header[:id] } it { should == 1 } end context 'with an unknown attribute' do let(:attribute) { Attribute::Integer.new(:other_id) } it { should be_nil } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.4 | spec/unit/veritas/tuple/element_reference_spec.rb |