Sha256: 0e0439a1bc001cff7c9695fe605d6939591df8f78e1806a3b15a256b2b439bcf
Contents?: true
Size: 416 Bytes
Versions: 1
Compression:
Stored size: 416 Bytes
Contents
require 'spec_helper' describe 'Veritas::Relation::Header#[]' do subject { object[name] } let(:klass) { Relation::Header } let(:object) { klass.new([ [ :id, Integer ] ]) } context 'with a known attribute name' do let(:name) { :id } it { should == [ :id, Integer ] } end context 'with an unknown attribute name' do let(:name) { :name } it { should be_nil } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/relation/header/element_reference_spec.rb |