Sha256: ffb17d20709121317d39bc4c778e3fc13a594dd237a1fb2766bcb3d2143a63c5

Contents?: true

Size: 536 Bytes

Versions: 1

Compression:

Stored size: 536 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Tuple, '#project' do
  subject { object.project(reversed_header) }

  let(:header)          { Relation::Header.new([ [ :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_kind_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
veritas-0.0.4 spec/unit/veritas/tuple/project_spec.rb