Sha256: e8b9bc9d597b374c73629a0acef32b598109fe6ce5de23736bb748202ff01949
Contents?: true
Size: 509 Bytes
Versions: 1
Compression:
Stored size: 509 Bytes
Contents
require 'spec_helper' describe 'Veritas::Relation::Operation::Order::DirectionSet#empty?' do subject { directions.empty? } context 'with an empty set' do let(:directions) { Relation::Operation::Order::DirectionSet.new([]) } it { should be(true) } end context 'with directions' do let(:attribute) { Attribute::Integer.new(:id) } let(:directions) { Relation::Operation::Order::DirectionSet.new([ attribute ]) } it { should be(false) } 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/empty_spec.rb |