Sha256: b76c5d35da61db999c372c23c93abcc78d7b3bd5ae6055e29af7ca9662d0bac6

Contents?: true

Size: 538 Bytes

Versions: 1

Compression:

Stored size: 538 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Tuple, '#join' do
  subject { object.join(new_header, values) }

  let(:header)     { Relation::Header.coerce([ [ :id, Integer ] ]) }
  let(:new_header) { header | [ [ :name, String ] ]                }
  let(:values)     { [ 'Dan Kubb' ]                                }
  let(:object)     { described_class.new(header, [ 1 ])            }

  it { should be_instance_of(described_class) }

  its(:header) { should equal(new_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/join_spec.rb