Sha256: 533de8d686be20fa937de29fb23fcf9f0ef2853b796137989bd40e49c95213c9

Contents?: true

Size: 545 Bytes

Versions: 1

Compression:

Stored size: 545 Bytes

Contents

# encoding: utf-8

require 'spec_helper'

[ :union, :| ].each do |method|
  describe Relation::Operation::Order::DirectionSet, "##{method}" do
    subject { object.send(method, other) }

    let(:attribute1) { Attribute::Integer.new(:id)         }
    let(:attribute2) { Attribute::String.new(:name)        }
    let(:object)     { described_class.new([ attribute1 ]) }
    let(:other)      { described_class.new([ attribute2 ]) }

    it { should be_kind_of(described_class) }

    it { should == [ attribute1.asc, attribute2.asc ] }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
veritas-0.0.4 spec/unit/veritas/relation/operation/order/direction_set/union_spec.rb