Sha256: ee197250f203f9ee9fa2d86213d50eb52d1108c3508ef939041bdacd96304fa1
Contents?: true
Size: 526 Bytes
Versions: 2
Compression:
Stored size: 526 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 be(reversed_header) } its(:to_ary) { should == [1, 'Dan Kubb'] } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.2.0 | spec/unit/axiom/tuple/project_spec.rb |
axiom-0.1.1 | spec/unit/axiom/tuple/project_spec.rb |