Sha256: 0303bff4547eeb58b2eae918e262b93d54d211fc73154edb7f078fffcc22f7b3

Contents?: true

Size: 379 Bytes

Versions: 4

Compression:

Stored size: 379 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

describe Relation, '#header' do
  subject { object.header }

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

  before do
    object.should be_instance_of(described_class)
  end

  it_should_behave_like 'an idempotent method'

  it { should equal(header) }
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
veritas-0.0.7 spec/unit/veritas/relation/header_spec.rb
veritas-0.0.6 spec/unit/veritas/relation/header_spec.rb
veritas-0.0.5 spec/unit/veritas/relation/header_spec.rb
veritas-0.0.4 spec/unit/veritas/relation/header_spec.rb