Sha256: bf398a0ea5025ca282e68fa2900cde05ec0fe967456c886033a152feb8e1d823
Contents?: true
Size: 604 Bytes
Versions: 1
Compression:
Stored size: 604 Bytes
Contents
require 'spec_helper' describe 'Veritas::Tuple#project' do subject { object.project(reversed_header) } let(:klass) { Tuple } let(:header) { Relation::Header.new([ [ :name, String ], [ :id, Integer ] ]) } let(:reversed_header) { Relation::Header.new(header.to_a.reverse) } let(:object) { klass.new(header, [ 'Dan Kubb', 1 ]) } it { should be_kind_of(klass) } its(:header) { should equal(reversed_header) } its(:to_ary) { should == [ 1, 'Dan Kubb' ] } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.2 | spec/unit/veritas/tuple/project_spec.rb |