Sha256: ee3dd49eb50be8ad3bcc104adb9cc024c79841a22dc3d511a469f8b34d58cf10

Contents?: true

Size: 355 Bytes

Versions: 1

Compression:

Stored size: 355 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Tuple, '#data' do
  subject { object.data }

  let(:header) { Relation::Header.coerce([ [ :id, Integer ] ]) }
  let(:object) { described_class.new(header, [ 1 ])            }

  it_should_behave_like 'an idempotent method'

  it { should be_instance_of(Hash) }

  it { should eql(header[:id] => 1) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/tuple/data_spec.rb