Sha256: 5cfa784bb30c3c10a422db53fe16f6184873dd35b7ed4b7c401152a76e26f122
Contents?: true
Size: 549 Bytes
Versions: 1
Compression:
Stored size: 549 Bytes
Contents
# encoding: utf-8 require 'spec_helper' describe Tuple, '#project' do subject { object.project(reversed_header) } let(:header) { Relation::Header.coerce([ [ :name, String ], [ :id, Integer ] ]) } let(:reversed_header) { Relation::Header.new(header.to_a.reverse) } let(:object) { described_class.new(header, [ 'Dan Kubb', 1 ]) } it { should be_instance_of(described_class) } 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 |
---|---|
axiom-0.1.0 | spec/unit/axiom/tuple/project_spec.rb |