Sha256: af23ae57a748d58765c8b58fd9b3cac306bd0f8396bd1b2907de6edba6548dbe

Contents?: true

Size: 405 Bytes

Versions: 1

Compression:

Stored size: 405 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

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

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

  it_should_behave_like 'an idempotent method'

  it { should equal(header) }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
axiom-0.1.0 spec/unit/axiom/relation/operation/order/header_spec.rb