Sha256: 90985eff8885dc75df00aca1c4ccda817f2a69e91af8ca8e75b1025c7222b946
Contents?: true
Size: 662 Bytes
Versions: 1
Compression:
Stored size: 662 Bytes
Contents
require 'spec_helper' [ :union, :| ].each do |method| describe "Veritas::Relation::Operation::Order::DirectionSet##{method}" do subject { directions.send(method, other) } let(:attribute1) { Attribute::Integer.new(:id) } let(:attribute2) { Attribute::String.new(:name) } let(:directions) { Relation::Operation::Order::DirectionSet.new([ attribute1 ]) } let(:other) { Relation::Operation::Order::DirectionSet.new([ attribute2 ]) } it { should be_kind_of(Relation::Operation::Order::DirectionSet) } it { should == [ attribute1.asc, attribute2.asc ] } end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
veritas-0.0.1 | spec/unit/veritas/relation/operation/order/direction_set/union_spec.rb |